aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorscria1000 <91804886+scria1000@users.noreply.github.com>2021-12-01 14:28:36 +0000
committerGitHub <noreply@github.com>2021-12-01 14:28:36 +0000
commitceeade6f1991119e579ffebee794fd79feac4de3 (patch)
treef300f099d18cccedfc3c6ec2d80a2b3b7763f939 /app/src/main
parentf39f608cde18a434a907a55cf5985bc18e0f2950 (diff)
downloadinfinity-for-reddit-ceeade6f1991119e579ffebee794fd79feac4de3.tar
infinity-for-reddit-ceeade6f1991119e579ffebee794fd79feac4de3.tar.gz
infinity-for-reddit-ceeade6f1991119e579ffebee794fd79feac4de3.tar.bz2
infinity-for-reddit-ceeade6f1991119e579ffebee794fd79feac4de3.tar.lz
infinity-for-reddit-ceeade6f1991119e579ffebee794fd79feac4de3.tar.xz
infinity-for-reddit-ceeade6f1991119e579ffebee794fd79feac4de3.tar.zst
infinity-for-reddit-ceeade6f1991119e579ffebee794fd79feac4de3.zip
Make switches and checkboxes more consistent on Dark Mode
Diffstat (limited to 'app/src/main')
-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>