properly export/import accent color

This commit is contained in:
tibbi 2021-02-18 19:43:26 +01:00
parent 5eb708c920
commit a50d712e13
1 changed files with 2 additions and 0 deletions

View File

@ -653,6 +653,7 @@ class SettingsActivity : SimpleActivity() {
put(TEXT_COLOR, config.textColor)
put(BACKGROUND_COLOR, config.backgroundColor)
put(PRIMARY_COLOR, config.primaryColor)
put(ACCENT_COLOR, config.accentColor)
put(APP_ICON_COLOR, config.appIconColor)
put(USE_ENGLISH, config.useEnglish)
put(WAS_USE_ENGLISH_TOGGLED, config.wasUseEnglishToggled)
@ -742,6 +743,7 @@ class SettingsActivity : SimpleActivity() {
TEXT_COLOR -> config.textColor = value.toInt()
BACKGROUND_COLOR -> config.backgroundColor = value.toInt()
PRIMARY_COLOR -> config.primaryColor = value.toInt()
ACCENT_COLOR -> config.accentColor = value.toInt()
APP_ICON_COLOR -> {
if (getAppIconColors().contains(value.toInt())) {
config.appIconColor = value.toInt()