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