tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 24eb3096279d4e49a0e97940b4145d48be6952fa
parent 2e8c6cf4391150ca70a4e7a095a0be80b116c9e3
Author: mcarare <48995920+mcarare@users.noreply.github.com>
Date:   Wed,  1 Oct 2025 16:58:43 +0000

Bug 1991884 - Update "Add to Home Screen" dialog button style. r=android-reviewers,avirvara

This patch updates the styling of the buttons in the "Add to Home Screen" dialog.

The changes include:
- Updating the parent style of `ButtonStyle` from `Base.Widget.AppCompat.ButtonBar.AlertDialog` to `Widget.Material3.Button.TextButton.Dialog` to align with Material 3 design.
- Adjusting the margins for the "Add" and "Cancel" buttons within the `dialog_add_to_homescreen2.xml` layout to accommodate the new style.

Differential Revision: https://phabricator.services.mozilla.com/D267028

Diffstat:
Mmobile/android/focus-android/app/src/main/res/layout/dialog_add_to_homescreen2.xml | 10+++++-----
Mmobile/android/focus-android/app/src/main/res/values/styles.xml | 2+-
2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/mobile/android/focus-android/app/src/main/res/layout/dialog_add_to_homescreen2.xml b/mobile/android/focus-android/app/src/main/res/layout/dialog_add_to_homescreen2.xml @@ -52,9 +52,9 @@ <Button android:id="@+id/addtohomescreen_dialog_add" style="@style/ButtonStyle" - android:layout_marginTop="36dp" - android:layout_marginStart="8dp" - android:layout_marginEnd="8dp" + android:layout_marginTop="30dp" + android:layout_marginStart="10dp" + android:layout_marginEnd="10dp" android:text="@string/dialog_addtohomescreen_action_add" app:layout_constraintBottom_toTopOf="@id/homescreen_dialog_warning_layout" app:layout_constraintEnd_toEndOf="parent" @@ -63,8 +63,8 @@ <Button android:id="@+id/addtohomescreen_dialog_cancel" style="@style/ButtonStyle" - android:layout_marginStart="8dp" - android:layout_marginEnd="8dp" + android:layout_marginStart="10dp" + android:layout_marginEnd="10dp" android:text="@string/dialog_addtohomescreen_action_cancel" app:layout_constraintEnd_toStartOf="@id/addtohomescreen_dialog_add" app:layout_constraintTop_toTopOf="@id/addtohomescreen_dialog_add" diff --git a/mobile/android/focus-android/app/src/main/res/values/styles.xml b/mobile/android/focus-android/app/src/main/res/values/styles.xml @@ -120,7 +120,7 @@ <item name="android:textColor">@color/accentBright</item> </style> - <style name="ButtonStyle" parent="Base.Widget.AppCompat.ButtonBar.AlertDialog"> + <style name="ButtonStyle" parent="Widget.Material3.Button.TextButton.Dialog"> <item name="android:layout_width">wrap_content</item> <item name="android:layout_height">wrap_content</item> <item name="android:textAllCaps">true</item>