adding some tiny globe and emoji changes

This commit is contained in:
Tibor Kaputa 2023-02-11 23:19:32 +01:00 committed by GitHub
parent ec9625b8f8
commit 6a46af16c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -618,8 +618,8 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
val secondaryIcon = key.secondaryIcon
if (secondaryIcon != null) {
val keyIconWidth = (keyIcon.intrinsicWidth * .8f).toInt()
val keyIconHeight = (keyIcon.intrinsicHeight * .8f).toInt()
val keyIconWidth = (keyIcon.intrinsicWidth * 0.9f).toInt()
val keyIconHeight = (keyIcon.intrinsicHeight * 0.9f).toInt()
val secondaryIconWidth = (secondaryIcon.intrinsicWidth * .6f).toInt()
val secondaryIconHeight = (secondaryIcon.intrinsicHeight * .6f).toInt()
@ -632,11 +632,11 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
keyIcon.setBounds(keyIconLeft, keyIconTop, keyIconLeft + keyIconWidth, keyIconTop + keyIconHeight)
keyIcon.draw(canvas)
val secondaryIconPaddingRight = 8
val secondaryIconPaddingRight = 10
val secondaryIconLeft = key.width - secondaryIconPaddingRight - secondaryIconWidth
val secondaryIconRight = secondaryIconLeft + secondaryIconWidth
val secondaryIconTop = 12 // This will act as a topPadding
val secondaryIconTop = 14 // This will act as a topPadding
val secondaryIconBottom = secondaryIconTop + secondaryIconHeight
secondaryIcon.setBounds(