From 76fa3646cc283f010adc7ec5e26552a4a2d45872 Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Mon, 5 Jun 2023 13:31:38 +0800 Subject: [PATCH] Override switch widget style to Material3 Preference library has apparently no love for Material3 by default Signed-off-by: Aayush Gupta --- .../main/res/layout/preference_material_switch.xml | 9 +++++++++ app/src/main/res/values/styles.xml | 14 ++++++++++++++ app/src/main/res/xml/preferences_updates.xml | 4 +++- 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 app/src/main/res/layout/preference_material_switch.xml diff --git a/app/src/main/res/layout/preference_material_switch.xml b/app/src/main/res/layout/preference_material_switch.xml new file mode 100644 index 000000000..87ded4583 --- /dev/null +++ b/app/src/main/res/layout/preference_material_switch.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 59789a90a..d8d9a638c 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -30,6 +30,7 @@ @color/colorShimmer @color/colorStroke @style/Widget.Aurora.Chip + @style/AppTheme.PreferenceThemeOverlay + + + + diff --git a/app/src/main/res/xml/preferences_updates.xml b/app/src/main/res/xml/preferences_updates.xml index 86bec7488..a7f3fc7fb 100644 --- a/app/src/main/res/xml/preferences_updates.xml +++ b/app/src/main/res/xml/preferences_updates.xml @@ -17,9 +17,11 @@ ~ --> - +