allow customizing the primary and app icon color at Auto
This commit is contained in:
parent
a4b0bf4bb4
commit
e6e734c8f9
1 changed files with 7 additions and 3 deletions
|
@ -242,9 +242,13 @@ class CustomizationActivity : BaseSimpleActivity() {
|
|||
val theme = predefinedThemes[curSelectedThemeId]!!
|
||||
curTextColor = getColor(theme.textColorId)
|
||||
curBackgroundColor = getColor(theme.backgroundColorId)
|
||||
curPrimaryColor = getColor(theme.primaryColorId)
|
||||
curAccentColor = getColor(R.color.color_primary)
|
||||
curAppIconColor = getColor(theme.appIconColorId)
|
||||
|
||||
if (curSelectedThemeId != THEME_AUTO) {
|
||||
curPrimaryColor = getColor(theme.primaryColorId)
|
||||
curAccentColor = getColor(R.color.color_primary)
|
||||
curAppIconColor = getColor(theme.appIconColorId)
|
||||
}
|
||||
|
||||
curNavigationBarColor = getThemeNavigationColor(curSelectedThemeId)
|
||||
setTheme(getThemeId(curPrimaryColor))
|
||||
colorChanged()
|
||||
|
|
Loading…
Reference in a new issue