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()