Skip to content

Commit b14f7c6

Browse files
fix: set secondaryIcon color to textColor
1 parent a17421b commit b14f7c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/main/kotlin/com/simplemobiletools/keyboard/views/MyKeyboardView.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,8 +609,10 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
609609

610610
if (code == KEYCODE_ENTER) {
611611
key.icon!!.applyColorFilter(mPrimaryColor.getContrastColor())
612+
key.secondaryIcon?.applyColorFilter(mPrimaryColor.getContrastColor())
612613
} else if (code == KEYCODE_DELETE || code == KEYCODE_SHIFT || code == KEYCODE_EMOJI) {
613614
key.icon!!.applyColorFilter(mTextColor)
615+
key.secondaryIcon?.applyColorFilter(mTextColor)
614616
}
615617
val keyIcon = key.icon!!
616618
val secondaryIcon = key.secondaryIcon

0 commit comments

Comments
 (0)