From 2ab4ad6b8e8d32c0ee1d0dd2fc455ca414504581 Mon Sep 17 00:00:00 2001 From: LeanBitLab Date: Fri, 4 Dec 2026 18:53:05 +0530 Subject: [PATCH 1/2] fix(toolbar): even out icon sizes and redraw GIF and font style icons (#1080) --- app/src/main/res/drawable/ic_autocorrect.xml | 10 +++++-- .../res/drawable/ic_autocorrect_rounded.xml | 10 +++++-- app/src/main/res/drawable/ic_font_style.xml | 9 +++--- .../res/drawable/ic_font_style_rounded.xml | 5 ++-- app/src/main/res/drawable/ic_gif.xml | 15 ++++++++-- app/src/main/res/drawable/ic_gif_rounded.xml | 15 ++++++++-- .../res/drawable/ic_proofread_rounded.xml | 24 +++++++++------ app/src/main/res/drawable/ic_translate.xml | 12 ++++++-- .../res/drawable/ic_translate_rounded.xml | 16 ++++++---- .../drawable/sym_keyboard_numpad_key_holo.xml | 30 +++++++++++-------- .../drawable/sym_keyboard_numpad_key_lxx.xml | 30 +++++++++++-------- .../drawable/sym_keyboard_settings_holo.xml | 12 ++++++-- .../sym_keyboard_start_onehanded_holo.xml | 10 +++++-- 13 files changed, 134 insertions(+), 64 deletions(-) diff --git a/app/src/main/res/drawable/ic_autocorrect.xml b/app/src/main/res/drawable/ic_autocorrect.xml index c0adb1e6d..db64c2e87 100644 --- a/app/src/main/res/drawable/ic_autocorrect.xml +++ b/app/src/main/res/drawable/ic_autocorrect.xml @@ -7,6 +7,12 @@ android:width="24dp" android:viewportHeight="24" android:viewportWidth="24" > - + + + diff --git a/app/src/main/res/drawable/ic_autocorrect_rounded.xml b/app/src/main/res/drawable/ic_autocorrect_rounded.xml index f215e0a3a..952b1c430 100644 --- a/app/src/main/res/drawable/ic_autocorrect_rounded.xml +++ b/app/src/main/res/drawable/ic_autocorrect_rounded.xml @@ -8,6 +8,12 @@ android:height="24dp" android:viewportWidth="960" android:viewportHeight="960"> - + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_font_style.xml b/app/src/main/res/drawable/ic_font_style.xml index 62feac430..b442c51a8 100644 --- a/app/src/main/res/drawable/ic_font_style.xml +++ b/app/src/main/res/drawable/ic_font_style.xml @@ -7,11 +7,10 @@ android:height="24dp" android:viewportWidth="24" android:viewportHeight="24"> - + android:strokeLineCap="butt" + android:strokeLineJoin="miter" + android:strokeWidth="1.8" /> diff --git a/app/src/main/res/drawable/ic_font_style_rounded.xml b/app/src/main/res/drawable/ic_font_style_rounded.xml index 7b4965bc5..dd6af1c13 100644 --- a/app/src/main/res/drawable/ic_font_style_rounded.xml +++ b/app/src/main/res/drawable/ic_font_style_rounded.xml @@ -7,11 +7,10 @@ android:height="24dp" android:viewportWidth="24" android:viewportHeight="24"> - + android:strokeWidth="1.8" /> diff --git a/app/src/main/res/drawable/ic_gif.xml b/app/src/main/res/drawable/ic_gif.xml index 36d85cdb8..d3bf513d4 100644 --- a/app/src/main/res/drawable/ic_gif.xml +++ b/app/src/main/res/drawable/ic_gif.xml @@ -3,7 +3,16 @@ android:height="24dp" android:viewportWidth="24" android:viewportHeight="24"> - + + + diff --git a/app/src/main/res/drawable/ic_gif_rounded.xml b/app/src/main/res/drawable/ic_gif_rounded.xml index 36d85cdb8..a547c831d 100644 --- a/app/src/main/res/drawable/ic_gif_rounded.xml +++ b/app/src/main/res/drawable/ic_gif_rounded.xml @@ -3,7 +3,16 @@ android:height="24dp" android:viewportWidth="24" android:viewportHeight="24"> - + + + diff --git a/app/src/main/res/drawable/ic_proofread_rounded.xml b/app/src/main/res/drawable/ic_proofread_rounded.xml index 7ca8d7327..3fd577c32 100644 --- a/app/src/main/res/drawable/ic_proofread_rounded.xml +++ b/app/src/main/res/drawable/ic_proofread_rounded.xml @@ -4,15 +4,21 @@ SPDX-License-Identifier: GPL-3.0-only --> - + + + diff --git a/app/src/main/res/drawable/ic_translate.xml b/app/src/main/res/drawable/ic_translate.xml index c13986d7b..6e9c7cb75 100644 --- a/app/src/main/res/drawable/ic_translate.xml +++ b/app/src/main/res/drawable/ic_translate.xml @@ -8,7 +8,13 @@ android:height="24dp" android:viewportWidth="24" android:viewportHeight="24"> - + + + diff --git a/app/src/main/res/drawable/ic_translate_rounded.xml b/app/src/main/res/drawable/ic_translate_rounded.xml index 69a21d427..ef06785f6 100644 --- a/app/src/main/res/drawable/ic_translate_rounded.xml +++ b/app/src/main/res/drawable/ic_translate_rounded.xml @@ -4,11 +4,17 @@ SPDX-License-Identifier: GPL-3.0-only --> - + + + diff --git a/app/src/main/res/drawable/sym_keyboard_numpad_key_holo.xml b/app/src/main/res/drawable/sym_keyboard_numpad_key_holo.xml index f9fe4b6cc..cdae716bd 100644 --- a/app/src/main/res/drawable/sym_keyboard_numpad_key_holo.xml +++ b/app/src/main/res/drawable/sym_keyboard_numpad_key_holo.xml @@ -9,16 +9,22 @@ android:width="34dp" android:viewportHeight="1350" android:viewportWidth="1350"> - - - - + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/sym_keyboard_numpad_key_lxx.xml b/app/src/main/res/drawable/sym_keyboard_numpad_key_lxx.xml index 1891322a5..8dfc81bfd 100644 --- a/app/src/main/res/drawable/sym_keyboard_numpad_key_lxx.xml +++ b/app/src/main/res/drawable/sym_keyboard_numpad_key_lxx.xml @@ -9,16 +9,22 @@ android:width="32dp" android:viewportHeight="1350" android:viewportWidth="1350"> - - - - + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/sym_keyboard_settings_holo.xml b/app/src/main/res/drawable/sym_keyboard_settings_holo.xml index 99264da63..9f1e53187 100644 --- a/app/src/main/res/drawable/sym_keyboard_settings_holo.xml +++ b/app/src/main/res/drawable/sym_keyboard_settings_holo.xml @@ -9,7 +9,13 @@ android:height="28dp" android:viewportWidth="24" android:viewportHeight="24"> - + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/sym_keyboard_start_onehanded_holo.xml b/app/src/main/res/drawable/sym_keyboard_start_onehanded_holo.xml index 1518e49d7..ec984eb9d 100644 --- a/app/src/main/res/drawable/sym_keyboard_start_onehanded_holo.xml +++ b/app/src/main/res/drawable/sym_keyboard_start_onehanded_holo.xml @@ -7,6 +7,12 @@ android:width="28dp" android:viewportHeight="24" android:viewportWidth="24" > - + + + From 574436270fc496fb35ab2fa99aa30834f55c9c4e Mon Sep 17 00:00:00 2001 From: LeanBitLab Date: Fri, 4 Dec 2026 18:53:05 +0530 Subject: [PATCH 2/2] fix(style): drop the tick from the selected font style chip --- .../helium314/keyboard/latin/style/StylePreviewStripView.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/helium314/keyboard/latin/style/StylePreviewStripView.kt b/app/src/main/java/helium314/keyboard/latin/style/StylePreviewStripView.kt index daf3257db..cd27ee14f 100644 --- a/app/src/main/java/helium314/keyboard/latin/style/StylePreviewStripView.kt +++ b/app/src/main/java/helium314/keyboard/latin/style/StylePreviewStripView.kt @@ -130,7 +130,8 @@ class StylePreviewStripView @JvmOverloads constructor( // 1. Normal / Plain text chip (always available to revert text or disable live style) val isNormalActive = !isLiveActive val normalChip = TextView(context).apply { - text = if (isNormalActive) "✓ ${context.getString(R.string.style_plain)}" else context.getString(R.string.style_plain) + text = context.getString(R.string.style_plain) + isSelected = isNormalActive // the highlight alone is not announced by screen readers setTextSize(TypedValue.COMPLEX_UNIT_SP, 15f) setTypeface(null, if (isNormalActive) Typeface.BOLD else Typeface.NORMAL) gravity = Gravity.CENTER @@ -185,7 +186,8 @@ class StylePreviewStripView @JvmOverloads constructor( val isCurrentLive = UnicodeStyleEngine.activeLiveStyleId == style.id val chip = TextView(context).apply { - text = if (isCurrentLive) "✓ $transformedPreview" else transformedPreview + text = transformedPreview + isSelected = isCurrentLive setTextSize(TypedValue.COMPLEX_UNIT_SP, 15f) gravity = Gravity.CENTER includeFontPadding = false