pull/32/head
GKF 6 years ago
parent d066cda2c1
commit abe3f2b1a4
  1. 8
      app/src/main/java/io/legado/app/ui/config/ThemeConfigFragment.kt
  2. 4
      app/src/main/res/values/colors.xml

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

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">@color/md_teal_800</color>
<color name="colorPrimaryDark">@color/md_teal_900</color>
<color name="colorPrimary">@color/md_light_blue_500</color>
<color name="colorPrimaryDark">@color/md_light_blue_600</color>
<color name="colorAccent">@color/md_pink_A400</color>
<color name="text_default">#222222</color>
<color name="divider">#66666666</color>

Loading…
Cancel
Save