Skip to content

Commit c7726f3

Browse files
committed
fix toolbar style
1 parent c3b2d9f commit c7726f3

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

app/src/main/res/layout/fragment_home.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,9 @@
193193

194194
<mozilla.components.browser.menu.view.MenuButton
195195
android:id="@+id/menuButton"
196-
android:layout_width="48dp"
196+
android:layout_width="wrap_content"
197197
android:layout_height="48dp"
198-
android:layout_marginEnd="16dp"
198+
android:layout_marginEnd="8dp"
199199
app:layout_constraintEnd_toEndOf="parent"
200200
app:layout_constraintTop_toTopOf="@id/bottom_bar"
201201
app:layout_constraintBottom_toBottomOf="@id/bottom_bar"/>

automation/iceraven/patch_android_components.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ done
1414
sed -i "s#gleanPythonEnvDir#// gleanPythonEnvDir#g" android-components/**/*.gradle
1515

1616
git -C android-components apply < automation/iceraven/patches/top_sites_no_most_visted_sites.patch
17-
git -C android-components apply < automation/iceraven/patches/suggestions_increase_number.patch
17+
git -C android-components apply < automation/iceraven/patches/suggestions_increase_number.patch
18+
git -C android-components apply < automation/iceraven/patches/toolbar.patch
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
diff --git a/components/browser/toolbar/src/main/res/layout/mozac_browser_toolbar_displaytoolbar.xml b/components/browser/toolbar/src/main/res/layout/mozac_browser_toolbar_displaytoolbar.xml
2+
index b435db2ef9..00bf29a2c2 100644
3+
--- a/components/browser/toolbar/src/main/res/layout/mozac_browser_toolbar_displaytoolbar.xml
4+
+++ b/components/browser/toolbar/src/main/res/layout/mozac_browser_toolbar_displaytoolbar.xml
5+
@@ -142,9 +142,10 @@
6+
7+
<mozilla.components.browser.menu.view.MenuButton
8+
android:id="@+id/mozac_browser_toolbar_menu"
9+
- android:layout_width="@dimen/mozac_browser_toolbar_button_width"
10+
+ android:layout_width="wrap_content"
11+
android:layout_height="@dimen/mozac_browser_toolbar_button_height"
12+
android:layout_marginTop="4dp"
13+
+ android:layout_marginEnd="8dp"
14+
android:background="?android:attr/selectableItemBackgroundBorderless"
15+
app:layout_constraintEnd_toEndOf="parent"
16+
app:layout_constraintTop_toTopOf="parent" />

0 commit comments

Comments
 (0)