Pure white light theme
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user