fixed key font scaling affecting the Function Keys layout when it shouldn't
This commit is contained in:
parent
b42e33b8b1
commit
f84c21dea8
2 changed files with 12 additions and 3 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue