From 95296314652a23bcf7b23a38a0ee59de8cd675cf Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Date: Sat, 3 Jan 2026 23:36:28 +0100 Subject: [PATCH] [android] Apply new dark background on bottomsheet and map buttons Signed-off-by: Jean-Baptiste --- .../organicmaps/util/bottomsheet/MenuBottomSheetFragment.java | 2 +- android/app/src/main/res/layout-land/layout_nav.xml | 2 +- android/app/src/main/res/layout/bottom_sheet_menu_item.xml | 1 - android/app/src/main/res/layout/layout_nav.xml | 2 +- android/app/src/main/res/layout/place_page.xml | 1 + android/app/src/main/res/values-night/colors.xml | 1 + android/app/src/main/res/values/styles.xml | 4 ++-- 7 files changed, 7 insertions(+), 6 deletions(-) diff --git a/android/app/src/main/java/app/organicmaps/util/bottomsheet/MenuBottomSheetFragment.java b/android/app/src/main/java/app/organicmaps/util/bottomsheet/MenuBottomSheetFragment.java index aadc44847..5e746eb44 100644 --- a/android/app/src/main/java/app/organicmaps/util/bottomsheet/MenuBottomSheetFragment.java +++ b/android/app/src/main/java/app/organicmaps/util/bottomsheet/MenuBottomSheetFragment.java @@ -53,7 +53,7 @@ public class MenuBottomSheetFragment extends BottomSheetDialogFragment @Override public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) { - return new BottomSheetDialog(requireContext(), getTheme()) { + return new BottomSheetDialog(requireContext(), R.style.MwmTheme_BottomSheetDialog) { @Override public void onAttachedToWindow() { diff --git a/android/app/src/main/res/layout-land/layout_nav.xml b/android/app/src/main/res/layout-land/layout_nav.xml index 6ee0ac8fb..aae4b0489 100644 --- a/android/app/src/main/res/layout-land/layout_nav.xml +++ b/android/app/src/main/res/layout-land/layout_nav.xml @@ -41,5 +41,5 @@ android:layout_width="0dp" android:layout_height="0dp" android:layout_gravity="bottom|start" - android:background="?cardBackground"/> + android:background="?colorSurfaceContainerLow"/> diff --git a/android/app/src/main/res/layout/bottom_sheet_menu_item.xml b/android/app/src/main/res/layout/bottom_sheet_menu_item.xml index a0a6f33c1..b1b804cfe 100644 --- a/android/app/src/main/res/layout/bottom_sheet_menu_item.xml +++ b/android/app/src/main/res/layout/bottom_sheet_menu_item.xml @@ -8,7 +8,6 @@ android:paddingStart="@dimen/margin_base" android:paddingEnd="@dimen/margin_base" android:gravity="center_vertical" - android:background="?clickableBackground" android:orientation="horizontal"> + android:background="?colorSurfaceContainerLow"/> diff --git a/android/app/src/main/res/layout/place_page.xml b/android/app/src/main/res/layout/place_page.xml index ee276973e..4d0454697 100644 --- a/android/app/src/main/res/layout/place_page.xml +++ b/android/app/src/main/res/layout/place_page.xml @@ -4,6 +4,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:descendantFocusability="blocksDescendants" + android:background="?cardBackground" android:orientation="vertical"> #FF3C4044 @color/bg_window #FF588157 + #10140F #CC2D3237 diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml index a414bb5a3..34336ecfe 100644 --- a/android/app/src/main/res/values/styles.xml +++ b/android/app/src/main/res/values/styles.xml @@ -290,13 +290,13 @@