From c992bc0849110b1648ba397ce217957f864e4d6d Mon Sep 17 00:00:00 2001 From: Aleksandras Kostarevas Date: Mon, 6 May 2024 16:32:52 -0500 Subject: [PATCH] Update limits --- java/res/values/config.xml | 6 +++--- .../src/org/futo/inputmethod/keyboard/MainKeyboardView.java | 2 +- .../inputmethod/latin/uix/theme/selector/ThemePicker.kt | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java/res/values/config.xml b/java/res/values/config.xml index 33bcb0603..a5d04550a 100644 --- a/java/res/values/config.xml +++ b/java/res/values/config.xml @@ -47,8 +47,8 @@ 50.0dp 122dp 82% - 55% - 55% + 66% + 66% 65% 90% 34% @@ -65,7 +65,7 @@ 3.20%p - 55% + 66% 41% 40dp diff --git a/java/src/org/futo/inputmethod/keyboard/MainKeyboardView.java b/java/src/org/futo/inputmethod/keyboard/MainKeyboardView.java index fb6fef8f9..82febfd47 100644 --- a/java/src/org/futo/inputmethod/keyboard/MainKeyboardView.java +++ b/java/src/org/futo/inputmethod/keyboard/MainKeyboardView.java @@ -399,7 +399,7 @@ public final class MainKeyboardView extends KeyboardView implements DrawingProxy mSpaceKey = keyboard.getKey(Constants.CODE_SPACE); final int keyHeight = keyboard.mMostCommonKeyHeight - keyboard.mVerticalGap; - mLanguageOnSpacebarTextSize = keyHeight * mLanguageOnSpacebarTextRatio; + mLanguageOnSpacebarTextSize = Math.min(keyHeight, keyboard.mMostCommonKeyWidth) * mLanguageOnSpacebarTextRatio; if (AccessibilityUtils.getInstance().isAccessibilityEnabled()) { if (mAccessibilityDelegate == null) { diff --git a/java/src/org/futo/inputmethod/latin/uix/theme/selector/ThemePicker.kt b/java/src/org/futo/inputmethod/latin/uix/theme/selector/ThemePicker.kt index a84746f84..6d78776c9 100644 --- a/java/src/org/futo/inputmethod/latin/uix/theme/selector/ThemePicker.kt +++ b/java/src/org/futo/inputmethod/latin/uix/theme/selector/ThemePicker.kt @@ -226,7 +226,7 @@ fun ThemePicker(onSelected: (ThemeOption) -> Unit) { SettingSlider( title = "Keyboard Height", setting = KeyboardHeightMultiplierSetting, - range = 0.1f .. 2.0f, transform = { it }, + range = 0.33f .. 1.75f, transform = { it }, indicator = { "${(it * 100.0f).roundToInt()}%" } ) }