Bug 1391177 - Part 8: Adjust layout for menu icons on toolbar. r=nechen,walkingice

MozReview-Commit-ID: 46l5Uw3zhO5

--HG--
extra : rebase_source : 71875cbd67ff3f3d674a4020481b3f9f81bd6b1d
This commit is contained in:
Jing-wei Wu 2017-08-28 09:20:19 +08:00
Родитель fec51f2213
Коммит 352d2d1c0e
4 изменённых файлов: 20 добавлений и 17 удалений

Просмотреть файл

@ -19,7 +19,11 @@
<dimen name="browser_toolbar_menu_radius">4dp</dimen>
<dimen name="browser_toolbar_favicon_size">16dp</dimen>
<dimen name="browser_toolbar_image_button_width">56dp</dimen>
<dimen name="browser_toolbar_image_button_width">48dp</dimen>
<!-- ToolbarImageButton's pressed-highlight region is different from clickable region.
Our design is to make pressed-highlight region to be square. this vertical spacing value
helps drawable xml to set padding: (56 - 48) / 2 -->
<dimen name="browser_toolbar_image_button_v_spacing">4dp</dimen>
<dimen name="browser_toolbar_image_button_h_spacing">4dp</dimen>
<dimen name="browser_toolbar_site_security_width">34dp</dimen>
@ -41,6 +45,5 @@
<dimen name="tab_panel_grid_item_vpadding_autofit">8dp</dimen>
<!-- PageActionButtons dimensions -->
<dimen name="page_action_button_width">56dp</dimen>
<dimen name="page_action_button_width">@dimen/browser_toolbar_icon_width</dimen>
</resources>

Просмотреть файл

@ -31,7 +31,7 @@
<style name="UrlBar.V17.Tabs" parent="UrlBar.Base.Tabs">
<item name="android:layout_toStartOf">@id/menu</item>
<item name="android:layout_marginEnd">-4dp</item>
<item name="android:layout_marginEnd">-3dp</item>
</style>
<style name="UrlBar.TabCounter" parent="UrlBar.V17.TabCounter" />
@ -55,7 +55,7 @@
<item name="android:layout_toStartOf">@id/edit_cancel</item>
<item name="android:paddingStart">8dp</item>
<item name="android:paddingEnd">0dp</item>
<item name="android:layout_marginEnd">-2dp</item>
<item name="android:layout_marginEnd">-3dp</item>
</style>
<style name="UrlBar.DisplayLayout" parent="UrlBar.V17.DisplayLayout" />
@ -63,12 +63,12 @@
<style name="UrlBar.V17.DisplayLayout" parent="UrlBar.Base.DisplayLayout">
<item name="android:layout_alignStart">@id/url_bar_entry</item>
<item name="android:layout_alignEnd">@id/url_bar_entry</item>
<item name="android:layout_marginEnd">-2dp</item>
<item name="android:layout_marginEnd">-3dp</item>
</style>
<style name="UrlBar.QRCode" parent="UrlBar.V15.QRCode"/>
<style name="UrlBar.V15.QRCode" parent="UrlBar.ImageButton">
<item name="android:layout_marginRight">-2dp</item>
<style name="UrlBar.QRCode" parent="UrlBar.V17.QRCode"/>
<style name="UrlBar.V17.QRCode" parent="UrlBar.ImageButton">
<item name="android:layout_marginRight">-3dp</item>
</style>
</resources>

Просмотреть файл

@ -12,11 +12,11 @@
<dimen name="autocomplete_row_height">32dp</dimen>
<dimen name="browser_toolbar_height">56dp</dimen>
<dimen name="browser_toolbar_image_button_width">48dp</dimen>
<dimen name="browser_toolbar_image_button_width">42dp</dimen>
<!-- ToolbarImageButton's pressed-highlight region is different from clickable region.
Our design is to make pressed-highlight region to be square. this vertical spacing value
helps drawable xml to set padding: (56 - 48) / 2 -->
<dimen name="browser_toolbar_image_button_v_spacing">4dp</dimen>
helps drawable xml to set padding: (56 - 42) / 2 -->
<dimen name="browser_toolbar_image_button_v_spacing">7dp</dimen>
<dimen name="browser_toolbar_image_button_h_spacing">0dp</dimen>
<!-- This value is the height of the Tabs Panel header view
@ -184,7 +184,7 @@
<dimen name="tab_highlight_stroke_width">5dp</dimen>
<!-- PageActionButtons dimensions -->
<dimen name="page_action_button_width">48dp</dimen>
<dimen name="page_action_button_width">@dimen/browser_toolbar_image_button_width</dimen>
<!-- Banner -->
<dimen name="home_banner_height">72dp</dimen>

Просмотреть файл

@ -849,7 +849,7 @@
<style name="UrlBar.Base.Tabs" parent="UrlBar.ImageButton"/>
<style name="UrlBar.V15.Tabs" parent="UrlBar.Base.Tabs">
<item name="android:layout_toLeftOf">@id/menu</item>
<item name="android:layout_marginRight">-4dp</item>
<item name="android:layout_marginRight">-3dp</item>
</style>
<style name="UrlBar.TabCounter" parent="UrlBar.V15.TabCounter"/>
@ -878,7 +878,7 @@
<item name="android:layout_toLeftOf">@id/edit_cancel</item>
<item name="android:paddingLeft">8dp</item>
<item name="android:paddingRight">0dp</item>
<item name="android:layout_marginRight">-2dp</item>
<item name="android:layout_marginRight">-3dp</item>
</style>
<style name="UrlBar.DisplayLayout" parent="UrlBar.V15.DisplayLayout"/>
@ -887,12 +887,12 @@
<style name="UrlBar.V15.DisplayLayout" parent="UrlBar.Base.DisplayLayout">
<item name="android:layout_alignLeft">@id/url_bar_entry</item>
<item name="android:layout_alignRight">@id/url_bar_entry</item>
<item name="android:layout_marginRight">-2dp</item>
<item name="android:layout_marginRight">-3dp</item>
</style>
<style name="UrlBar.QRCode" parent="UrlBar.V15.QRCode"/>
<style name="UrlBar.V15.QRCode" parent="UrlBar.ImageButton">
<item name="android:layout_marginRight">-2dp</item>
<item name="android:layout_marginRight">-3dp</item>
</style>
</resources>