Pure white light theme

This commit is contained in:
arkon
2020-03-14 13:18:34 -04:00
parent 738f776d36
commit e41edc1fb7
17 changed files with 133 additions and 39 deletions
@@ -118,6 +118,28 @@ class SettingsGeneralController : SettingsController() {
true
}
}
listPreference {
key = Keys.themeLight
titleRes = R.string.pref_theme_light
entriesRes = arrayOf(
R.string.theme_light_default,
R.string.theme_light_blue)
entryValues = arrayOf(
Values.THEME_LIGHT_DEFAULT,
Values.THEME_LIGHT_BLUE)
defaultValue = Values.THEME_LIGHT_DEFAULT
summary = "%s"
preferences.themeMode().asObservable()
.subscribeUntilDestroy { isVisible = it != Values.THEME_MODE_DARK }
onChange {
if (preferences.themeMode().getOrDefault() == Values.THEME_MODE_LIGHT) {
activity?.recreate()
}
true
}
}
listPreference {
key = Keys.themeDark
titleRes = R.string.pref_theme_dark