From a56cc772f71ea38560dc46c57ad5932277038a2b Mon Sep 17 00:00:00 2001 From: Luke Wass Date: Tue, 20 May 2025 11:58:12 -0500 Subject: [PATCH 1/2] Add visual cues and interactive styling to the settings fragment --- app/src/main/res/layout/tutorial_4_setup.xml | 26 ++++++++++++++------ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/app/src/main/res/layout/tutorial_4_setup.xml b/app/src/main/res/layout/tutorial_4_setup.xml index 9650c57..c55bdc8 100644 --- a/app/src/main/res/layout/tutorial_4_setup.xml +++ b/app/src/main/res/layout/tutorial_4_setup.xml @@ -33,17 +33,27 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/tutorial_setup_title" /> - + app:layout_constraintEnd_toEndOf="parent"> + + + + Date: Sun, 25 May 2025 12:54:54 +0200 Subject: [PATCH 2/2] 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