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()}%" } ) }