aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/values/styles.xml
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-10-03 12:31:55 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-10-03 12:31:55 +0000
commit11f6b5dc91028a26c6fb9906920682b250634ded (patch)
tree1cf9e4c29957ca3fb016e16d40586e61b4ffe02a /app/src/main/res/values/styles.xml
parent66b0eeef9930bf0bf42e977aabb110c9c6f6fca5 (diff)
downloadinfinity-for-reddit-11f6b5dc91028a26c6fb9906920682b250634ded.tar
infinity-for-reddit-11f6b5dc91028a26c6fb9906920682b250634ded.tar.gz
infinity-for-reddit-11f6b5dc91028a26c6fb9906920682b250634ded.tar.bz2
infinity-for-reddit-11f6b5dc91028a26c6fb9906920682b250634ded.tar.lz
infinity-for-reddit-11f6b5dc91028a26c6fb9906920682b250634ded.tar.xz
infinity-for-reddit-11f6b5dc91028a26c6fb9906920682b250634ded.tar.zst
infinity-for-reddit-11f6b5dc91028a26c6fb9906920682b250634ded.zip
AMOLED dark theme is now available.
Diffstat (limited to '')
-rw-r--r--app/src/main/res/values/styles.xml51
1 files changed, 49 insertions, 2 deletions
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 2b6e10bb..698057fd 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -3,8 +3,8 @@
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.MaterialComponents.DayNight">
<!-- Customize your theme here. -->
- <item name="colorPrimary">@color/colorPrimary</item>
- <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
+ <item name="colorPrimary">?attr/colorPrimary</item>
+ <item name="colorPrimaryDark">?attr/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:navigationBarColor">@android:color/black</item>
<item name="android:textColorPrimary">@android:color/white</item>
@@ -46,6 +46,7 @@
<style name="MaterialAlertDialogTheme" parent="ThemeOverlay.MaterialComponents.MaterialAlertDialog">
<item name="android:textSize">?attr/font_default</item>
+ <item name="android:background">?attr/cardViewBackgroundColor</item>
<item name="materialAlertDialogTitleTextStyle">@style/MaterialAlertDialogTitleTextStyle</item>
<item name="materialAlertDialogBodyTextStyle">@style/MaterialAlertDialogBodyTextStyle</item>
<item name="buttonBarPositiveButtonStyle">@style/MaterialAlertDialogPositiveButtonStyle</item>
@@ -74,6 +75,7 @@
<item name="android:textColorPrimary">@color/primaryTextColor</item>
<item name="buttonBarPositiveButtonStyle">@style/MaterialAlertDialogPositiveButtonStyle</item>
<item name="buttonBarNegativeButtonStyle">@style/MaterialAlertDialogNegativeButtonStyle</item>
+ <item name="alertDialogTheme">@style/ListPreferenceStyle</item>
</style>
<style name="PreferenceTitleTextStyle">
@@ -85,6 +87,10 @@
<item name="android:textSize">?attr/font_default</item>
</style>
+ <style name="ListPreferenceStyle" parent="ThemeOverlay.AppCompat.Dialog.Alert">
+ <item name="android:background">?attr/cardViewBackgroundColor</item>
+ </style>
+
<style name="FontStyle" />
<style name="FontStyle.Small">
@@ -195,4 +201,45 @@
<item name="content_font_20">26sp</item>
</style>
+ <style name="Theme" />
+
+ <style name="Theme.Default">
+ <item name="colorPrimary">@color/colorPrimary</item>
+ <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
+ <item name="backgroundColor">@color/backgroundColor</item>
+ <item name="roundedBottomSheetPrimaryBackground">@color/roundedBottomSheetPrimaryBackground</item>
+ <item name="cardViewBackgroundColor">@color/cardViewBackgroundColor</item>
+ <item name="toolbarAndTabBackgroundColor">@color/toolbarAndTabBackgroundColor</item>
+ <item name="circularProgressBarBackground">#FFFFFF</item>
+ <item name="tabLayoutWithExpandedCollapsingToolbarTabBackground">#FFFFFF</item>
+ <item name="tabLayoutWithCollapsedCollapsingToolbarTabBackground">@color/colorPrimary</item>
+ <item name="navBarColor">@color/backgroundColor</item>
+ </style>
+
+ <style name="Theme.Default.NormalDark">
+ <item name="colorPrimary">@color/colorPrimary</item>
+ <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
+ <item name="backgroundColor">@color/backgroundColor</item>
+ <item name="roundedBottomSheetPrimaryBackground">@color/roundedBottomSheetPrimaryBackground</item>
+ <item name="cardViewBackgroundColor">@color/cardViewBackgroundColor</item>
+ <item name="toolbarAndTabBackgroundColor">@color/toolbarAndTabBackgroundColor</item>
+ <item name="circularProgressBarBackground">@color/colorPrimary</item>
+ <item name="tabLayoutWithExpandedCollapsingToolbarTabBackground">@color/backgroundColor</item>
+ <item name="tabLayoutWithCollapsedCollapsingToolbarTabBackground">@color/colorPrimary</item>
+ <item name="navBarColor">@color/backgroundColor</item>
+ </style>
+
+ <style name="Theme.Default.AmoledDark">
+ <item name="colorPrimary">#000000</item>
+ <item name="colorPrimaryDark">#000000</item>
+ <item name="backgroundColor">#000000</item>
+ <item name="roundedBottomSheetPrimaryBackground">#000000</item>
+ <item name="cardViewBackgroundColor">#000000</item>
+ <item name="toolbarAndTabBackgroundColor">#000000</item>
+ <item name="circularProgressBarBackground">#000000</item>
+ <item name="tabLayoutWithExpandedCollapsingToolbarTabBackground">#000000</item>
+ <item name="tabLayoutWithCollapsedCollapsingToolbarTabBackground">#000000</item>
+ <item name="navBarColor">#000000</item>
+ </style>
+
</resources>