feat: 优化代码

pull/103/head
kunfei 5 years ago
parent 8bd735118d
commit 817616da88
  1. 8
      app/src/main/java/io/legado/app/App.kt

@ -70,10 +70,10 @@ class App : Application() {
if (AppConfig.isNightTheme) { if (AppConfig.isNightTheme) {
ThemeStore.editTheme(this) ThemeStore.editTheme(this)
.primaryColor( .primaryColor(
getPrefInt("colorPrimaryNight", getCompatColor(R.color.shine_color)) getPrefInt("colorPrimaryNight", getCompatColor(R.color.md_blue_grey_600))
) )
.accentColor( .accentColor(
getPrefInt("colorAccentNight", getCompatColor(R.color.lightBlue_color)) getPrefInt("colorAccentNight", getCompatColor(R.color.md_brown_800))
) )
.backgroundColor( .backgroundColor(
getPrefInt("colorBackgroundNight", getCompatColor(R.color.shine_color)) getPrefInt("colorBackgroundNight", getCompatColor(R.color.shine_color))
@ -82,10 +82,10 @@ class App : Application() {
} else { } else {
ThemeStore.editTheme(this) ThemeStore.editTheme(this)
.primaryColor( .primaryColor(
getPrefInt("colorPrimary", getCompatColor(R.color.md_grey_100)) getPrefInt("colorPrimary", getCompatColor(R.color.md_indigo_800))
) )
.accentColor( .accentColor(
getPrefInt("colorAccent", getCompatColor(R.color.lightBlue_color)) getPrefInt("colorAccent", getCompatColor(R.color.md_red_600))
) )
.backgroundColor( .backgroundColor(
getPrefInt("colorBackground", getCompatColor(R.color.md_grey_100)) getPrefInt("colorBackground", getCompatColor(R.color.md_grey_100))

Loading…
Cancel
Save