pull/32/head
kunfei 5 years ago
parent d2c64f9847
commit 9a03cbb024
  1. 14
      app/src/main/java/io/legado/app/ui/config/ThemeConfigFragment.kt

@ -100,11 +100,17 @@ class ThemeConfigFragment : PreferenceFragmentCompat(), SharedPreferences.OnShar
.setMessage("是否确认恢复?")
.setPositiveButton(R.string.ok) { _, _ ->
preferenceManager.sharedPreferences.edit()
.putInt("colorPrimary", getCompatColor(R.color.colorPrimary))
.putInt("colorAccent", getCompatColor(R.color.colorAccent))
.putInt("colorPrimary", getCompatColor(R.color.md_light_blue_500))
.putInt("colorAccent", getCompatColor(R.color.md_pink_800))
.putInt("colorBackground", getCompatColor(R.color.md_grey_100))
.putInt("colorPrimaryNight", getCompatColor(R.color.colorPrimary))
.putInt("colorAccentNight", getCompatColor(R.color.colorAccent))
.putInt(
"colorPrimaryNight",
getCompatColor(R.color.md_blue_grey_600)
)
.putInt(
"colorAccentNight",
getCompatColor(R.color.md_deep_orange_800)
)
.putInt("colorBackgroundNight", getCompatColor(R.color.md_grey_800))
.apply()
App.INSTANCE.applyTheme()

Loading…
Cancel
Save