pull/32/head
GKF 6 years ago
parent 1b860a4057
commit 90acd68428
  1. 8
      app/src/main/java/io/legado/app/App.kt

@ -64,14 +64,14 @@ class App : Application() {
fun upThemeStore() { fun upThemeStore() {
if (getPrefBoolean("isNightTheme", false)) { if (getPrefBoolean("isNightTheme", false)) {
ThemeStore.editTheme(this) ThemeStore.editTheme(this)
.primaryColor(getPrefInt("colorPrimaryNight", getCompatColor(R.color.md_grey_800))) .primaryColor(getPrefInt("colorPrimaryNight", getCompatColor(R.color.colorPrimary)))
.accentColor(getPrefInt("colorAccentNight", getCompatColor(R.color.md_pink_800))) .accentColor(getPrefInt("colorAccentNight", getCompatColor(R.color.colorAccent)))
.backgroundColor(getPrefInt("colorBackgroundNight", getCompatColor(R.color.md_grey_800))) .backgroundColor(getPrefInt("colorBackgroundNight", getCompatColor(R.color.md_grey_800)))
.apply() .apply()
} else { } else {
ThemeStore.editTheme(this) ThemeStore.editTheme(this)
.primaryColor(getPrefInt("colorPrimary", getCompatColor(R.color.md_grey_100))) .primaryColor(getPrefInt("colorPrimary", getCompatColor(R.color.colorPrimary)))
.accentColor(getPrefInt("colorAccent", getCompatColor(R.color.md_pink_600))) .accentColor(getPrefInt("colorAccent", getCompatColor(R.color.colorAccent)))
.backgroundColor(getPrefInt("colorBackground", getCompatColor(R.color.md_grey_100))) .backgroundColor(getPrefInt("colorBackground", getCompatColor(R.color.md_grey_100)))
.apply() .apply()
} }

Loading…
Cancel
Save