@@ -1474,17 +1474,16 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
14741474 emojiPaletteLabel.setTextColor(textColor)
14751475
14761476 emojiPaletteBottomBar.background = ColorDrawable (backgroundColor)
1477- val bottomTextColor = textColor.darkenColor()
14781477 emojiPaletteModeChange.apply {
1479- setTextColor(bottomTextColor )
1478+ setTextColor(textColor )
14801479 setOnClickListener {
14811480 vibrateIfNeeded()
14821481 closeEmojiPalette()
14831482 }
14841483 }
14851484
14861485 emojiPaletteBackspace.apply {
1487- applyColorFilter(bottomTextColor )
1486+ applyColorFilter(textColor )
14881487 setOnTouchListener { _, event ->
14891488 when (event.action) {
14901489 MotionEvent .ACTION_DOWN -> {
@@ -1560,7 +1559,6 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
15601559 allItems.addAll(emojis.map(EmojisAdapter .Item ::Emoji ))
15611560 }
15621561 val checkIds = mutableMapOf<Int , String >()
1563- val inactiveColor = mTextColor.darkenColor()
15641562 keyboardViewBinding?.emojiCategoriesStrip?.apply {
15651563 weightSum = categories.count().toFloat()
15661564 val strip = this
@@ -1577,7 +1575,7 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
15771575 )
15781576 root.setOnClickListener {
15791577 strip.children.filterIsInstance<ImageButton >().forEach {
1580- it.imageTintList = ColorStateList .valueOf(inactiveColor )
1578+ it.imageTintList = ColorStateList .valueOf(mTextColor )
15811579 }
15821580 root.imageTintList = ColorStateList .valueOf(context.getProperPrimaryColor())
15831581 keyboardViewBinding?.emojisList?.stopScroll()
@@ -1586,7 +1584,7 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
15861584 0
15871585 )
15881586 }
1589- root.imageTintList = ColorStateList .valueOf(inactiveColor )
1587+ root.imageTintList = ColorStateList .valueOf(mTextColor )
15901588 }
15911589 }
15921590 }
@@ -1622,7 +1620,7 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
16221620 if (it.id == id) {
16231621 it.imageTintList = ColorStateList .valueOf(context.getProperPrimaryColor())
16241622 } else {
1625- it.imageTintList = ColorStateList .valueOf(inactiveColor )
1623+ it.imageTintList = ColorStateList .valueOf(mTextColor )
16261624 }
16271625 }
16281626 }
0 commit comments