1
0
Fork 0

fixed key font scaling affecting the Function Keys layout when it shouldn't

This commit is contained in:
sspanak 2025-02-05 11:15:15 +02:00 committed by Dimo Karaivanov
parent b42e33b8b1
commit f84c21dea8
2 changed files with 12 additions and 3 deletions

View file

@ -143,9 +143,13 @@ public class SoftKeyBackspace extends BaseSwipeableKey {
@Override @Override
protected float getTitleScale() { protected float getTitleScale() {
float scale = tt9 != null && tt9.getSettings().isMainLayoutNumpad() ? super.getTitleScale() : 1; float scale = 1.1f;
float settingsScale = tt9 != null ? tt9.getSettings().getNumpadKeyFontSizePercent() / 100f : 1;
return scale * settingsScale * 1.1f; if (tt9 != null && tt9.getSettings().isMainLayoutNumpad()) {
scale *= super.getTitleScale();
}
return scale;
} }

View file

@ -37,6 +37,11 @@ public class SoftKeyOk extends SoftKey {
super.setHeight(height); super.setHeight(height);
} }
@Override
protected float getTitleScale() {
return tt9 != null && tt9.getSettings().isMainLayoutNumpad() ? super.getTitleScale() : 1;
}
@Override @Override
public void render() { public void render() {
if (tt9 != null) { if (tt9 != null) {