fix messed-up default icon height scale

This commit is contained in:
Helium314 2023-09-16 20:18:37 +02:00
parent 6e46f5c9f6
commit 5861c892bf
2 changed files with 2 additions and 2 deletions

View file

@ -304,7 +304,7 @@ public class KeyboardView extends View {
mShowsHints = Settings.getInstance().getCurrent().mShowsHints;
final float scale = Settings.getInstance().getCurrent().mKeyboardHeightScale;
mIconScaleFactor = scale < 0.8f ? scale + 0.2f : scale;
mIconScaleFactor = scale < 0.8f ? scale + 0.2f : 1f;
final Paint paint = mPaint;
final Drawable background = getBackground();
// Calculate clip region and set.

View file

@ -113,7 +113,7 @@ class KeyboardWrapperView @JvmOverloads constructor(
val scale = Settings.getInstance().current.mKeyboardHeightScale
// scale one-handed mode button height if keyboard height scale is < 80%
// more relevant: also change the distance, so the buttons are actually visible
val heightScale = scale + 0.2f
val heightScale = if (scale < 0.8f) scale + 0.2f else 1f
val buttonsLeft = if (isLeftGravity) keyboardView.measuredWidth else 0
stopOneHandedModeBtn.layout(
buttonsLeft + (spareWidth - stopOneHandedModeBtn.measuredWidth) / 2,