From 9230d943ba0febc655c026403d7a1d9aaf8ba433 Mon Sep 17 00:00:00 2001 From: oliexdev Date: Sat, 29 Jul 2023 11:37:38 +0200 Subject: [PATCH] corrected color in dialog preferences buttons and radio buttons after using Material3, see #944 --- .../app/src/main/res/layout/fragment_usersettings.xml | 7 +++++++ .../main/res/layout/user_preference_widget_layout.xml | 1 + android_app/app/src/main/res/values-night/themes.xml | 10 ++++++++++ android_app/app/src/main/res/values/themes.xml | 1 + 4 files changed, 19 insertions(+) diff --git a/android_app/app/src/main/res/layout/fragment_usersettings.xml b/android_app/app/src/main/res/layout/fragment_usersettings.xml index 2c22a7150..621ae6140 100644 --- a/android_app/app/src/main/res/layout/fragment_usersettings.xml +++ b/android_app/app/src/main/res/layout/fragment_usersettings.xml @@ -98,12 +98,14 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:checked="true" + android:theme="@style/AppTheme.RadioButton" android:text="@string/label_male" /> @@ -184,11 +186,13 @@ android:layout_height="wrap_content" android:text="cm" android:id="@+id/btnRadioCM" + android:theme="@style/AppTheme.RadioButton" android:checked="true" /> @@ -216,18 +220,21 @@ android:layout_height="wrap_content" android:text="kg" android:id="@+id/btnRadioKG" + android:theme="@style/AppTheme.RadioButton" android:checked="true" /> diff --git a/android_app/app/src/main/res/layout/user_preference_widget_layout.xml b/android_app/app/src/main/res/layout/user_preference_widget_layout.xml index e446a76b3..76389c16e 100644 --- a/android_app/app/src/main/res/layout/user_preference_widget_layout.xml +++ b/android_app/app/src/main/res/layout/user_preference_widget_layout.xml @@ -13,6 +13,7 @@ android:id="@+id/user_radio_button" android:layout_width="0dp" android:layout_height="wrap_content" + android:theme="@style/AppTheme.RadioButton" android:layout_marginLeft="16dp" android:layout_weight="1" /> \ No newline at end of file diff --git a/android_app/app/src/main/res/values-night/themes.xml b/android_app/app/src/main/res/values-night/themes.xml index cde54ccad..de500ef83 100644 --- a/android_app/app/src/main/res/values-night/themes.xml +++ b/android_app/app/src/main/res/values-night/themes.xml @@ -27,6 +27,16 @@ @color/md_theme_dark_inverseOnSurface @color/md_theme_dark_inverseSurface @color/md_theme_dark_inversePrimary + @style/AppTheme.Dialog + @color/md_theme_dark_onPrimary + + + + +