From 23ab8c809a97fda49a311fbcd2cb101d911afaa8 Mon Sep 17 00:00:00 2001 From: 0xd9a <0xd9a@noreply.codeberg.org> Date: Wed, 23 Jul 2025 21:49:52 +0530 Subject: [PATCH] Material 3 style switches in settings --- .../mastodon/layout/preference_switch_material.xml | 5 +++++ app/src/main/res/values-night/themes.xml | 1 + app/src/main/res/values/themes.xml | 8 ++++++++ 3 files changed, 14 insertions(+) create mode 100644 app/src/main/res/layouts/mastodon/layout/preference_switch_material.xml diff --git a/app/src/main/res/layouts/mastodon/layout/preference_switch_material.xml b/app/src/main/res/layouts/mastodon/layout/preference_switch_material.xml new file mode 100644 index 00000000..400da04a --- /dev/null +++ b/app/src/main/res/layouts/mastodon/layout/preference_switch_material.xml @@ -0,0 +1,5 @@ + + diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml index 0afe1d32..c6ea5c2e 100644 --- a/app/src/main/res/values-night/themes.xml +++ b/app/src/main/res/values-night/themes.xml @@ -85,6 +85,7 @@ false false @style/AppThemeAlertDialog + @style/AppPreferenceThemeOverlay diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 889e6d3e..3b3e558f 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -84,6 +84,7 @@ true ?android:colorBackground @style/AppThemeAlertDialog + @style/AppPreferenceThemeOverlay + + +