From b787262124c2a6c3495a4521ffbb9e49b2e83f47 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Date: Thu, 1 Jan 2026 08:49:29 +0100 Subject: [PATCH] [android] Use M3 dark background in the app Signed-off-by: Jean-Baptiste --- .../res/layout/downloader_item_header.xml | 1 - .../main/res/layout/edit_bookmark_common.xml | 2 +- .../fragment_bookmark_category_settings.xml | 3 +- .../main/res/layout/fragment_downloader.xml | 2 +- .../res/layout/fragment_edit_bookmark.xml | 2 +- .../main/res/layout/fragment_editor_host.xml | 1 + .../src/main/res/layout/fragment_search.xml | 4 +- .../layout/fragment_timetable_advanced.xml | 50 +++++++++---------- .../res/layout/item_category_description.xml | 2 +- .../main/res/layout/item_category_title.xml | 2 +- .../layout/item_feature_category_footer.xml | 2 +- android/app/src/main/res/layout/menu.xml | 2 +- .../main/res/layout/menu_route_plan_line.xml | 2 +- .../src/main/res/layout/position_chooser.xml | 2 +- .../src/main/res/layout/recycler_default.xml | 1 - .../main/res/layout/routing_action_panel.xml | 2 +- .../app/src/main/res/values-night/themes.xml | 2 +- android/app/src/main/res/values/themes.xml | 8 +-- 18 files changed, 42 insertions(+), 48 deletions(-) diff --git a/android/app/src/main/res/layout/downloader_item_header.xml b/android/app/src/main/res/layout/downloader_item_header.xml index 00c052ee4..e4c47ea77 100644 --- a/android/app/src/main/res/layout/downloader_item_header.xml +++ b/android/app/src/main/res/layout/downloader_item_header.xml @@ -13,7 +13,6 @@ android:paddingTop="@dimen/margin_half" android:paddingBottom="@dimen/margin_half" android:layout_marginEnd="@dimen/margin_base" - android:background="?cardBackground" android:textAppearance="@style/MwmTextAppearance.Caption" tools:text="Downloaded" tools:background="#80FF0000"/> diff --git a/android/app/src/main/res/layout/edit_bookmark_common.xml b/android/app/src/main/res/layout/edit_bookmark_common.xml index 2773898a9..343039239 100644 --- a/android/app/src/main/res/layout/edit_bookmark_common.xml +++ b/android/app/src/main/res/layout/edit_bookmark_common.xml @@ -6,7 +6,7 @@ android:id="@+id/rl__bookmark_details" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="?cardBackground" + android:background="?appBackground" android:padding="@dimen/margin_half"> diff --git a/android/app/src/main/res/layout/fragment_downloader.xml b/android/app/src/main/res/layout/fragment_downloader.xml index f34220a9e..365782d97 100644 --- a/android/app/src/main/res/layout/fragment_downloader.xml +++ b/android/app/src/main/res/layout/fragment_downloader.xml @@ -4,7 +4,7 @@ xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" style="@style/MwmWidget.Floating" - android:background="?cardBackground" + android:background="?appBackground" android:layout_width="match_parent" android:layout_height="match_parent"> diff --git a/android/app/src/main/res/layout/fragment_edit_bookmark.xml b/android/app/src/main/res/layout/fragment_edit_bookmark.xml index dad4f9c17..cc0789539 100644 --- a/android/app/src/main/res/layout/fragment_edit_bookmark.xml +++ b/android/app/src/main/res/layout/fragment_edit_bookmark.xml @@ -4,7 +4,7 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="?cardBackground"> + android:background="?appBackground"> + android:background="?appBackground"> diff --git a/android/app/src/main/res/layout/fragment_timetable_advanced.xml b/android/app/src/main/res/layout/fragment_timetable_advanced.xml index b96765d76..dae72acbd 100644 --- a/android/app/src/main/res/layout/fragment_timetable_advanced.xml +++ b/android/app/src/main/res/layout/fragment_timetable_advanced.xml @@ -1,7 +1,7 @@ - - - - - - + style="@style/MwmWidget.M3.Editor.CardView" + app:cardBackgroundColor="?cardBackground"> + + + + diff --git a/android/app/src/main/res/layout/menu_route_plan_line.xml b/android/app/src/main/res/layout/menu_route_plan_line.xml index 7f5eb7ff3..78712f60b 100644 --- a/android/app/src/main/res/layout/menu_route_plan_line.xml +++ b/android/app/src/main/res/layout/menu_route_plan_line.xml @@ -2,7 +2,7 @@ diff --git a/android/app/src/main/res/layout/position_chooser.xml b/android/app/src/main/res/layout/position_chooser.xml index 2375768de..44fe7d07e 100644 --- a/android/app/src/main/res/layout/position_chooser.xml +++ b/android/app/src/main/res/layout/position_chooser.xml @@ -29,7 +29,7 @@ diff --git a/android/app/src/main/res/layout/recycler_default.xml b/android/app/src/main/res/layout/recycler_default.xml index a00ff5978..0549bda31 100644 --- a/android/app/src/main/res/layout/recycler_default.xml +++ b/android/app/src/main/res/layout/recycler_default.xml @@ -4,5 +4,4 @@ android:id="@+id/recycler" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="?cardBackground" android:scrollbars="vertical"/> diff --git a/android/app/src/main/res/layout/routing_action_panel.xml b/android/app/src/main/res/layout/routing_action_panel.xml index 40ade18a9..ef6e9408e 100644 --- a/android/app/src/main/res/layout/routing_action_panel.xml +++ b/android/app/src/main/res/layout/routing_action_panel.xml @@ -6,7 +6,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:minHeight="@dimen/height_block_base" - android:background="?cardBackground" + android:background="?appBackground" android:baselineAligned="false"> @color/text_light @color/text_dark @color/text_light_subtitle - ?windowBackgroundForced + ?appBackground @color/bg_primary_dark stateUnspecified|adjustPan @string/robotoRegular diff --git a/android/app/src/main/res/values/themes.xml b/android/app/src/main/res/values/themes.xml index c46c15e74..0eece2642 100644 --- a/android/app/src/main/res/values/themes.xml +++ b/android/app/src/main/res/values/themes.xml @@ -12,7 +12,7 @@ @color/text_dark @color/text_light @color/text_dark_subtitle - ?windowBackgroundForced + ?appBackground @color/bg_primary_dark stateUnspecified|adjustPan @string/robotoRegular @@ -185,11 +185,11 @@