aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDocile-Alligator <chineseperson5@gmail.com>2021-12-02 12:40:37 +0000
committerGitHub <noreply@github.com>2021-12-02 12:40:37 +0000
commitb0d9a15dfd648d27052d1785b4ab808b58ffc2bb (patch)
treee819404b143aa5f1d8c6bc66d55b1083566443de /app
parent23818261658c8ad941712b730d07f6ac32885d3b (diff)
parentceeade6f1991119e579ffebee794fd79feac4de3 (diff)
downloadinfinity-for-reddit-b0d9a15dfd648d27052d1785b4ab808b58ffc2bb.tar
infinity-for-reddit-b0d9a15dfd648d27052d1785b4ab808b58ffc2bb.tar.gz
infinity-for-reddit-b0d9a15dfd648d27052d1785b4ab808b58ffc2bb.tar.bz2
infinity-for-reddit-b0d9a15dfd648d27052d1785b4ab808b58ffc2bb.tar.lz
infinity-for-reddit-b0d9a15dfd648d27052d1785b4ab808b58ffc2bb.tar.xz
infinity-for-reddit-b0d9a15dfd648d27052d1785b4ab808b58ffc2bb.tar.zst
infinity-for-reddit-b0d9a15dfd648d27052d1785b4ab808b58ffc2bb.zip
Merge pull request #564 from scria1000/patch-2
Make switches and checkboxes more consistent on Dark Mode
Diffstat (limited to '')
-rw-r--r--app/src/main/res/values/styles.xml22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 9fdc6369..a0b0243f 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -120,7 +120,25 @@
<style name="ListPreferenceStyle" parent="ThemeOverlay.AppCompat.Dialog.Alert">
<item name="android:background">?attr/cardViewBackgroundColor</item>
</style>
+
+ <style name="Widget.App.CheckBox.Dark" parent="Widget.Material3.CompoundButton.CheckBox">
+ <item name="materialThemeOverlay">@style/ThemeOverlay.App.CheckBox.Dark</item>
+ </style>
+
+ <style name="ThemeOverlay.App.CheckBox.Dark" parent="">
+ <item name="colorOnSurface">@color/colorPrimary</item>
+ <item name="colorPrimary">@color/primaryTextColor</item>
+ </style>
+ <style name="Widget.App.Switch.Dark" parent="Widget.Material3.CompoundButton.Switch">
+ <item name="materialThemeOverlay">@style/ThemeOverlay.App.Switch.Dark</item>
+ </style>
+
+ <style name="ThemeOverlay.App.Switch.Dark" parent="">
+ <item name="colorOnSurface">@color/colorPrimary</item>
+ <item name="colorPrimary">@color/primaryTextColor</item>
+ </style>
+
<style name="FontStyle" />
<style name="FontStyle.Small">
@@ -431,6 +449,8 @@
<item name="secondaryTextColor">#B3FFFFFF</item>
<item name="backgroundColor">@color/backgroundColor</item>
<item name="cardViewBackgroundColor">#242424</item>
+ <item name="checkboxStyle">@style/Widget.App.CheckBox.Dark</item>
+ <item name="switchStyle">@style/Widget.App.Switch.Dark</item>
</style>
<style name="Theme.Normal.AmoledDark">
@@ -442,6 +462,8 @@
<item name="secondaryTextColor">#B3FFFFFF</item>
<item name="backgroundColor">#000000</item>
<item name="cardViewBackgroundColor">#000000</item>
+ <item name="checkboxStyle">@style/Widget.App.CheckBox.Dark</item>
+ <item name="switchStyle">@style/Widget.App.Switch.Dark</item>
</style>
</resources>