mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-04-24 00:26:22 +00:00
don't shrink emoji keyboard keys with side padding
This commit is contained in:
parent
73c21a1d37
commit
1ad9cc5eda
1 changed files with 2 additions and 2 deletions
|
@ -42,8 +42,8 @@ class EmojiParser(private val params: KeyboardParams, private val context: Conte
|
|||
|
||||
// determine key width for default settings (no number row, no one-handed mode, 100% height and bottom padding scale)
|
||||
// this is a bit long, but ensures that emoji size stays the same, independent of these settings
|
||||
// todo: remove side padding? would look less "compressed" when users choose large padding
|
||||
val defaultKeyWidth = (ResourceUtils.getDefaultKeyboardWidth(context) - params.mLeftPadding - params.mRightPadding) * params.mDefaultKeyWidth
|
||||
// we also ignore side padding for key width, and prefer fewer keys per row over narrower keys
|
||||
val defaultKeyWidth = ResourceUtils.getDefaultKeyboardWidth(context) * params.mDefaultKeyWidth
|
||||
val keyWidth = defaultKeyWidth * sqrt(Settings.getInstance().current.mKeyboardHeightScale)
|
||||
val defaultKeyboardHeight = ResourceUtils.getDefaultKeyboardHeight(context.resources, false)
|
||||
val defaultBottomPadding = context.resources.getFraction(R.fraction.config_keyboard_bottom_padding_holo, defaultKeyboardHeight, defaultKeyboardHeight)
|
||||
|
|
Loading…
Add table
Reference in a new issue