comment (currently) unused color filters

This commit is contained in:
Helium314 2023-10-30 22:19:50 +01:00
parent d4a47508cd
commit 51c906863d

View file

@ -49,9 +49,9 @@ class Colors (
val backgroundFilter: ColorFilter val backgroundFilter: ColorFilter
val adjustedBackgroundFilter: ColorFilter val adjustedBackgroundFilter: ColorFilter
val keyBackgroundFilter: ColorFilter // val keyBackgroundFilter: ColorFilter
val functionalKeyBackgroundFilter: ColorFilter // val functionalKeyBackgroundFilter: ColorFilter
val spaceBarFilter: ColorFilter // val spaceBarFilter: ColorFilter
val keyTextFilter: ColorFilter val keyTextFilter: ColorFilter
val accentColorFilter: ColorFilter val accentColorFilter: ColorFilter
/** color filter for the white action key icons in material theme, switches to gray if necessary for contrast */ /** color filter for the white action key icons in material theme, switches to gray if necessary for contrast */
@ -103,9 +103,9 @@ class Colors (
adjustedBackgroundFilter = colorFilter(adjustedBackground) adjustedBackgroundFilter = colorFilter(adjustedBackground)
if (hasKeyBorders) { if (hasKeyBorders) {
keyBackgroundFilter = colorFilter(keyBackground) // keyBackgroundFilter = colorFilter(keyBackground)
functionalKeyBackgroundFilter = colorFilter(functionalKey) // functionalKeyBackgroundFilter = colorFilter(functionalKey)
spaceBarFilter = colorFilter(spaceBar) // spaceBarFilter = colorFilter(spaceBar)
backgroundStateList = stateList(brightenOrDarken(background, true), background) backgroundStateList = stateList(brightenOrDarken(background, true), background)
keyStateList = if (themeStyle == STYLE_HOLO) stateList(keyBackground, keyBackground) keyStateList = if (themeStyle == STYLE_HOLO) stateList(keyBackground, keyBackground)
else stateList(brightenOrDarken(keyBackground, true), keyBackground) else stateList(brightenOrDarken(keyBackground, true), keyBackground)
@ -116,9 +116,9 @@ class Colors (
else stateList(brightenOrDarken(spaceBar, true), spaceBar) else stateList(brightenOrDarken(spaceBar, true), spaceBar)
} else { } else {
// need to set color to background if key borders are disabled, or there will be ugly keys // need to set color to background if key borders are disabled, or there will be ugly keys
keyBackgroundFilter = backgroundFilter // keyBackgroundFilter = backgroundFilter
functionalKeyBackgroundFilter = keyBackgroundFilter // functionalKeyBackgroundFilter = keyBackgroundFilter
spaceBarFilter = colorFilter(spaceBar) // spaceBarFilter = colorFilter(spaceBar)
backgroundStateList = stateList(brightenOrDarken(background, true), background) backgroundStateList = stateList(brightenOrDarken(background, true), background)
keyStateList = stateList(brightenOrDarken(background, true), Color.TRANSPARENT) keyStateList = stateList(brightenOrDarken(background, true), Color.TRANSPARENT)
functionalKeyStateList = keyStateList functionalKeyStateList = keyStateList