From b59da2fa81ce7e2bfa5a92396b2ab94f454d37cc Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 29 Aug 2019 19:50:03 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/App.kt | 18 ++++++++++++++---- app/src/main/res/values-night/colors.xml | 4 ++++ app/src/main/res/values/colors.xml | 6 +++--- app/src/main/res/xml/pref_config_theme.xml | 8 ++++---- 4 files changed, 25 insertions(+), 11 deletions(-) diff --git a/app/src/main/java/io/legado/app/App.kt b/app/src/main/java/io/legado/app/App.kt index 742f67e7c..b28924a1c 100644 --- a/app/src/main/java/io/legado/app/App.kt +++ b/app/src/main/java/io/legado/app/App.kt @@ -68,14 +68,24 @@ class App : Application() { fun applyTheme() { if (isNightTheme) { ThemeStore.editTheme(this) - .primaryColor(getPrefInt("colorPrimaryNight", getCompatColor(R.color.colorPrimary))) - .accentColor(getPrefInt("colorAccentNight", getCompatColor(R.color.colorAccent))) + .primaryColor( + getPrefInt( + "colorPrimaryNight", + getCompatColor(R.color.md_blue_grey_600) + ) + ) + .accentColor( + getPrefInt( + "colorAccentNight", + getCompatColor(R.color.md_deep_orange_800) + ) + ) .backgroundColor(getPrefInt("colorBackgroundNight", getCompatColor(R.color.md_grey_800))) .apply() } else { ThemeStore.editTheme(this) - .primaryColor(getPrefInt("colorPrimary", getCompatColor(R.color.colorPrimary))) - .accentColor(getPrefInt("colorAccent", getCompatColor(R.color.colorAccent))) + .primaryColor(getPrefInt("colorPrimary", getCompatColor(R.color.md_light_blue_500))) + .accentColor(getPrefInt("colorAccent", getCompatColor(R.color.md_pink_800))) .backgroundColor(getPrefInt("colorBackground", getCompatColor(R.color.md_grey_100))) .apply() } diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml index 2e4227f8b..c10a0bfb1 100644 --- a/app/src/main/res/values-night/colors.xml +++ b/app/src/main/res/values-night/colors.xml @@ -1,5 +1,9 @@ + @color/md_blue_grey_600 + @color/md_blue_grey_700 + @color/md_deep_orange_800 + @color/md_grey_800 #353535 #282828 diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 06b21555d..d5b3e1f54 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -1,8 +1,8 @@ - @color/md_light_blue_500 - @color/md_light_blue_600 - @color/md_pink_A400 + @color/md_light_blue_600 + @color/md_light_blue_700 + @color/md_pink_800 #66666666 #eb4333 diff --git a/app/src/main/res/xml/pref_config_theme.xml b/app/src/main/res/xml/pref_config_theme.xml index 71af6eeba..35f4f46e4 100644 --- a/app/src/main/res/xml/pref_config_theme.xml +++ b/app/src/main/res/xml/pref_config_theme.xml @@ -34,7 +34,7 @@ app:iconSpaceReserved="false">