From b061a45aac282a5ffbb6bde2ae80ed150a3e092a Mon Sep 17 00:00:00 2001 From: Felipe Erias Date: Wed, 18 Dec 2024 22:34:34 +0900 Subject: [PATCH] Size and spacing of navigation bar elements Set the default size in dp (800dp, previously 720dp) of the navigation bar to be consistent with its default size in world dimensions (4.0). This makes the navigation elements slightly smaller, which we compensate by increasing their size to 44dp. Reduce the margin between elements. Split the styles for the navigation bar from the ones used in other elements in the UI, for example in the close button in dialogs. Increase the height of the navigation bar to ensure that the move bar is visible. --- .../res/layout/deprecated_version_dialog.xml | 2 +- app/src/main/res/layout/library.xml | 4 +- .../res/layout/navigation_bar_navigation.xml | 40 +++++++++++-------- app/src/main/res/layout/options_header.xml | 8 +--- app/src/main/res/layout/prompt_dialog.xml | 4 +- app/src/main/res/layout/tabs.xml | 4 +- app/src/main/res/layout/title_bar.xml | 2 +- app/src/main/res/values/dimen.xml | 9 ++++- app/src/main/res/values/styles.xml | 10 ++++- 9 files changed, 47 insertions(+), 36 deletions(-) diff --git a/app/src/main/res/layout/deprecated_version_dialog.xml b/app/src/main/res/layout/deprecated_version_dialog.xml index 8b2c6c4d190..ed1d2b6efb7 100644 --- a/app/src/main/res/layout/deprecated_version_dialog.xml +++ b/app/src/main/res/layout/deprecated_version_dialog.xml @@ -31,7 +31,7 @@ @@ -23,7 +24,7 @@ @@ -40,7 +41,7 @@ @@ -91,14 +97,14 @@ android:id="@+id/urlBarPlaceholder" android:layout_width="wrap_content" android:layout_height="0dp" - android:layout_marginStart="10dp" + android:layout_marginStart="@dimen/nav_button_margin" android:layout_weight="100" app:visibleGone="@{viewmodel.isKioskMode && !viewmodel.isFindInPage}" /> @@ -134,8 +140,8 @@ app:privateMode="@{viewmodel.isPrivateSession}" /> -5.2 - 720dp - 74dp + 800dp + 96dp 28dp 36dp 36dp @@ -191,6 +191,11 @@ 0.15 0.1 + 44dp + 12dp + 9dp + 8dp + 10dp 8dp diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 78160152d5d..eb91172ecc2 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -6,6 +6,7 @@ + @@ -63,11 +64,17 @@ @color/azure - + + @@ -468,6 +475,7 @@ @style/navigationBarTheme @style/navigationBarButtonTheme @style/accentedNavigationBarButtonTheme + @style/headerBarButtonTheme @style/fullScreenButtonTheme @style/fullScreenFirstButtonTheme @style/fullScreenLastButtonTheme