Fix background suggestions for dynamic colors (#375)

Only the material style without key border is affected
This commit is contained in:
BlackyHawky 2024-01-02 17:33:02 +01:00 committed by GitHub
parent 66267f8ce5
commit 058317b449
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -271,8 +271,7 @@ class DynamicColors(context: Context, override val themeStyle: String, override
ACTION_KEY_BACKGROUND -> actionKeyStateList
SPACE_BAR_BACKGROUND -> spaceBarStateList
MORE_KEYS_BACKGROUND -> adjustedBackgroundStateList
SUGGESTION_BACKGROUND -> if (!hasKeyBorders && themeStyle == STYLE_MATERIAL) adjustedBackgroundStateList
else backgroundStateList
SUGGESTION_BACKGROUND -> backgroundStateList
ACTION_KEY_MORE_KEYS_BACKGROUND -> if (themeStyle == STYLE_HOLO) adjustedBackgroundStateList
else actionKeyStateList
TOOL_BAR_KEY -> toolbarKeyStateList