mirror of
https://github.com/FossifyOrg/Keyboard.git
synced 2026-06-13 08:04:57 -04:00
Fix mini keyboard background color
This commit is contained in:
@@ -395,7 +395,7 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
|
||||
mVoiceInputMethod = config.voiceInputMethod
|
||||
}
|
||||
|
||||
val isMainKeyboard = changedView == null || changedView != keyboardPopupBinding?.miniKeyboardView
|
||||
val isMainKeyboard = changedView == null || changedView.id != R.id.mini_keyboard_view
|
||||
mKeyColor = getKeyColor()
|
||||
mKeyColorPressed = mKeyColor.adjustAlpha(0.2f)
|
||||
mKeyBackground = if (mShowKeyBorders && isMainKeyboard) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<item android:id="@+id/button_background_shape">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/theme_dark_background_color" />
|
||||
<corners android:radius="@dimen/small_margin" />
|
||||
<corners android:radius="@dimen/medium_margin" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
android:width="1dp"
|
||||
android:color="@color/divider_grey" />
|
||||
<solid android:color="@android:color/transparent" />
|
||||
<corners android:radius="@dimen/small_margin" />
|
||||
<corners android:radius="@dimen/medium_margin" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<item android:id="@+id/button_background_shape">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/color_primary" />
|
||||
<corners android:radius="@dimen/small_margin" />
|
||||
<corners android:radius="@dimen/medium_margin" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
|
||||
Reference in New Issue
Block a user