From 951c24e1c994173afc966d4bdbf518ea860d1508 Mon Sep 17 00:00:00 2001 From: Aleksandras Kostarevas Date: Tue, 7 May 2024 16:22:55 -0500 Subject: [PATCH] Fix incorrect bottom padding color --- java/src/org/futo/inputmethod/latin/LatinIME.kt | 1 + java/src/org/futo/inputmethod/latin/uix/UixManager.kt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/java/src/org/futo/inputmethod/latin/LatinIME.kt b/java/src/org/futo/inputmethod/latin/LatinIME.kt index 13b16f64f..bfd0716ed 100644 --- a/java/src/org/futo/inputmethod/latin/LatinIME.kt +++ b/java/src/org/futo/inputmethod/latin/LatinIME.kt @@ -124,6 +124,7 @@ class LatinIME : InputMethodService(), LifecycleOwner, ViewModelStoreOwner, Save val themeOption get() = activeThemeOption val colorScheme get() = activeColorScheme + val keyboardColor get() = drawableProvider?.primaryKeyboardColor?.let { androidx.compose.ui.graphics.Color(it) } ?: colorScheme.surface private var drawableProvider: DynamicThemeProvider? = null diff --git a/java/src/org/futo/inputmethod/latin/uix/UixManager.kt b/java/src/org/futo/inputmethod/latin/uix/UixManager.kt index 6bf142e8f..0933672c9 100644 --- a/java/src/org/futo/inputmethod/latin/uix/UixManager.kt +++ b/java/src/org/futo/inputmethod/latin/uix/UixManager.kt @@ -412,7 +412,7 @@ class UixManager(private val latinIME: LatinIME) { Spacer(modifier = Modifier.weight(1.0f)) Surface(modifier = Modifier.onSizeChanged { latinIME.updateTouchableHeight(it.height) - }) { + }, color = latinIME.keyboardColor) { Box { Column { when {