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