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

View File

@@ -7,6 +7,8 @@ object PreferenceKeys {
const val themeMode = "pref_theme_mode_key"
const val themeLight = "pref_theme_light_key"
const val themeDark = "pref_theme_dark_key"
const val rotation = "pref_rotation_type_key"

View File

@@ -9,6 +9,9 @@ object PreferenceValues {
const val THEME_MODE_DARK = "dark"
const val THEME_MODE_SYSTEM = "system"
const val THEME_LIGHT_DEFAULT = "default"
const val THEME_LIGHT_BLUE = "blue"
const val THEME_DARK_DEFAULT = "default"
const val THEME_DARK_BLUE = "blue"
const val THEME_DARK_AMOLED = "amoled"

View File

@@ -65,7 +65,9 @@ class PreferencesHelper(val context: Context) {
fun themeMode() = rxPrefs.getString(Keys.themeMode, Values.THEME_MODE_SYSTEM)
fun themeDark() = prefs.getString(Keys.themeDark, Values.THEME_DARK_DEFAULT)
fun themeLight() = prefs.getString(Keys.themeLight, Values.THEME_DARK_DEFAULT)
fun themeDark() = prefs.getString(Keys.themeDark, Values.THEME_LIGHT_DEFAULT)
fun rotation() = rxPrefs.getInteger(Keys.rotation, 1)