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) {
ThemeStore.editTheme(this)
.primaryColor(
getPrefInt("colorPrimaryNight", getCompatColor(R.color.shine_color))
getPrefInt("colorPrimaryNight", getCompatColor(R.color.md_blue_grey_600))
)
.accentColor(
getPrefInt("colorAccentNight", getCompatColor(R.color.lightBlue_color))
getPrefInt("colorAccentNight", getCompatColor(R.color.md_brown_800))
)
.backgroundColor(
getPrefInt("colorBackgroundNight", getCompatColor(R.color.shine_color))
@ -82,10 +82,10 @@ class App : Application() {
} else {
ThemeStore.editTheme(this)
.primaryColor(
getPrefInt("colorPrimary", getCompatColor(R.color.md_grey_100))
getPrefInt("colorPrimary", getCompatColor(R.color.md_indigo_800))
)
.accentColor(
getPrefInt("colorAccent", getCompatColor(R.color.lightBlue_color))
getPrefInt("colorAccent", getCompatColor(R.color.md_red_600))
)
.backgroundColor(
getPrefInt("colorBackground", getCompatColor(R.color.md_grey_100))

Loading…
Cancel
Save