From 394f66dde990b00f6ff221c8fbf871084ca95fa3 Mon Sep 17 00:00:00 2001 From: Josia Pietsch Date: Sun, 25 May 2025 12:54:54 +0200 Subject: [PATCH] change card background in light theme --- app/src/main/res/layout/list_widgets_row.xml | 6 ++++-- app/src/main/res/layout/tutorial_4_setup.xml | 2 +- app/src/main/res/values/styles.xml | 5 +++++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/app/src/main/res/layout/list_widgets_row.xml b/app/src/main/res/layout/list_widgets_row.xml index 147cc36..94eb068 100644 --- a/app/src/main/res/layout/list_widgets_row.xml +++ b/app/src/main/res/layout/list_widgets_row.xml @@ -12,8 +12,9 @@ diff --git a/app/src/main/res/layout/tutorial_4_setup.xml b/app/src/main/res/layout/tutorial_4_setup.xml index c55bdc8..5482f9f 100644 --- a/app/src/main/res/layout/tutorial_4_setup.xml +++ b/app/src/main/res/layout/tutorial_4_setup.xml @@ -37,7 +37,7 @@ android:layout_width="match_parent" android:layout_height="0dp" app:cardElevation="8dp" - app:cardBackgroundColor="@color/cardview_dark_background" + app:cardBackgroundColor="?cardBackgroundColor" app:cardCornerRadius="12dp" app:cardUseCompatPadding="true" app:layout_constraintTop_toBottomOf="@id/tutorial_setup_subtitle" diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index c5b7252..1defe2f 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -14,6 +14,7 @@ @style/Widget.AppCompat.Button.Colored ?colorAccent + @color/cardview_dark_background @@ -32,6 +33,7 @@ @color/darkTheme_background_color @color/darkTheme_accent_color @color/darkTheme_background_color + @color/cardview_dark_background @color/darkTheme_text_color @@ -40,6 +42,7 @@ @color/finnmglasTheme_background_color @color/finnmglasTheme_accent_color @color/finnmglasTheme_background_color + @color/cardview_dark_background @color/finnmglasTheme_text_color @@ -48,6 +51,7 @@ @color/lightTheme_background_color @color/lightTheme_accent_color @color/lightTheme_background_color + @color/cardview_light_background @color/lightTheme_text_color @@ -57,6 +61,7 @@ @color/material_dynamic_primary50 @color/material_dynamic_tertiary50 @color/material_dynamic_neutral10 + @color/cardview_dark_background @color/material_dynamic_neutral_variant90