Update limits

This commit is contained in:
Aleksandras Kostarevas 2024-05-06 16:32:52 -05:00
parent 2aac5ccfc3
commit c992bc0849
3 changed files with 5 additions and 5 deletions

View File

@ -47,8 +47,8 @@
<dimen name="config_key_preview_offset_lxx">50.0dp</dimen>
<dimen name="config_key_preview_height_lxx">122dp</dimen>
<fraction name="config_key_preview_text_ratio">82%</fraction>
<fraction name="config_key_letter_ratio_holo">55%</fraction>
<fraction name="config_key_letter_ratio_lxx">55%</fraction>
<fraction name="config_key_letter_ratio_holo">66%</fraction>
<fraction name="config_key_letter_ratio_lxx">66%</fraction>
<fraction name="config_key_large_letter_ratio_holo">65%</fraction>
<fraction name="config_key_large_letter_ratio_lxx">90%</fraction>
<fraction name="config_key_label_ratio_holo">34%</fraction>
@ -65,7 +65,7 @@
<!-- For 5-row keyboard -->
<fraction name="config_key_vertical_gap_5row">3.20%p</fraction>
<fraction name="config_key_letter_ratio_5row">55%</fraction>
<fraction name="config_key_letter_ratio_5row">66%</fraction>
<fraction name="config_key_shifted_letter_hint_ratio_5row">41%</fraction>
<dimen name="config_suggestions_strip_height">40dp</dimen>

View File

@ -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) {

View File

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