mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-18 16:03:12 +00:00
fix messed-up default icon height scale
This commit is contained in:
parent
6e46f5c9f6
commit
5861c892bf
2 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue