From 9a03cbb024446d76a243e8bfbb3cb0a24172d6c0 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 2 Sep 2019 10:00:41 +0800 Subject: [PATCH] up --- .../io/legado/app/ui/config/ThemeConfigFragment.kt | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/config/ThemeConfigFragment.kt b/app/src/main/java/io/legado/app/ui/config/ThemeConfigFragment.kt index 7d9f4006a..642a57578 100644 --- a/app/src/main/java/io/legado/app/ui/config/ThemeConfigFragment.kt +++ b/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()