From 88a7a7ddbf93d54e6b1522dcad6e9b8fdae8b722 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 --- .../src/main/res/layout/downloader_item_header.xml | 1 - .../src/main/res/layout/edit_bookmark_common.xml | 2 +- .../layout/fragment_bookmark_category_settings.xml | 3 +-- .../app/src/main/res/layout/fragment_downloader.xml | 2 +- .../src/main/res/layout/fragment_edit_bookmark.xml | 2 +- android/app/src/main/res/layout/fragment_phone.xml | 3 +-- android/app/src/main/res/layout/fragment_search.xml | 4 ++-- .../app/src/main/res/layout/fragment_timetable.xml | 4 ++-- .../main/res/layout/fragment_timetable_advanced.xml | 13 ++++++------- .../main/res/layout/item_category_description.xml | 2 +- .../app/src/main/res/layout/item_category_title.xml | 2 +- .../res/layout/item_feature_category_footer.xml | 2 +- android/app/src/main/res/layout/menu.xml | 2 +- .../src/main/res/layout/menu_route_plan_line.xml | 2 +- .../app/src/main/res/layout/position_chooser.xml | 2 +- .../app/src/main/res/layout/recycler_default.xml | 2 +- .../src/main/res/layout/routing_action_panel.xml | 2 +- 17 files changed, 23 insertions(+), 27 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_search.xml b/android/app/src/main/res/layout/fragment_search.xml index 9b9b0d8aa..e8977e673 100644 --- a/android/app/src/main/res/layout/fragment_search.xml +++ b/android/app/src/main/res/layout/fragment_search.xml @@ -61,12 +61,12 @@ android:layout_height="match_parent" android:clickable="true" android:focusable="true" - android:background="?cardBackground"> + android:background="?appBackground"> diff --git a/android/app/src/main/res/layout/fragment_timetable.xml b/android/app/src/main/res/layout/fragment_timetable.xml index 700a7ea8d..1407ec5b7 100644 --- a/android/app/src/main/res/layout/fragment_timetable.xml +++ b/android/app/src/main/res/layout/fragment_timetable.xml @@ -9,7 +9,7 @@ style="@style/MwmWidget.FrameLayout.Elevation" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="?windowBackgroundForced" + android:background="?appBackground" android:layout_above="@+id/tv__mode_switch" android:layout_below="@id/toolbar"/> @@ -19,7 +19,7 @@ android:layout_height="wrap_content" android:layout_alignTop="@+id/tv__mode_switch" android:layout_alignParentBottom="true" - android:background="?cardBackground"/> + android:background="?appBackground"/> + app:cardBackgroundColor="?cardBackground" + app:cardElevation="4dp"> + style="@style/MwmWidget.M3.Editor.CardView" + app:cardBackgroundColor="?cardBackground" + app:cardElevation="4dp"> 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..ed0eef765 100644 --- a/android/app/src/main/res/layout/recycler_default.xml +++ b/android/app/src/main/res/layout/recycler_default.xml @@ -4,5 +4,5 @@ android:id="@+id/recycler" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="?cardBackground" + android:background="?appBackground" 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">