From 90acd6842810ddc1c010a1d39f93b718ec8124c4 Mon Sep 17 00:00:00 2001 From: GKF Date: Wed, 5 Jun 2019 14:18:02 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/App.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/io/legado/app/App.kt b/app/src/main/java/io/legado/app/App.kt index b24432f92..be31f9309 100644 --- a/app/src/main/java/io/legado/app/App.kt +++ b/app/src/main/java/io/legado/app/App.kt @@ -64,14 +64,14 @@ class App : Application() { fun upThemeStore() { if (getPrefBoolean("isNightTheme", false)) { ThemeStore.editTheme(this) - .primaryColor(getPrefInt("colorPrimaryNight", getCompatColor(R.color.md_grey_800))) - .accentColor(getPrefInt("colorAccentNight", getCompatColor(R.color.md_pink_800))) + .primaryColor(getPrefInt("colorPrimaryNight", getCompatColor(R.color.colorPrimary))) + .accentColor(getPrefInt("colorAccentNight", getCompatColor(R.color.colorAccent))) .backgroundColor(getPrefInt("colorBackgroundNight", getCompatColor(R.color.md_grey_800))) .apply() } else { ThemeStore.editTheme(this) - .primaryColor(getPrefInt("colorPrimary", getCompatColor(R.color.md_grey_100))) - .accentColor(getPrefInt("colorAccent", getCompatColor(R.color.md_pink_600))) + .primaryColor(getPrefInt("colorPrimary", getCompatColor(R.color.colorPrimary))) + .accentColor(getPrefInt("colorAccent", getCompatColor(R.color.colorAccent))) .backgroundColor(getPrefInt("colorBackground", getCompatColor(R.color.md_grey_100))) .apply() }