abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/Theme.java
diff options
context:
space:
mode:
authorJules Aguillon2022-02-27 01:50:24 +0100
committerJules Aguillon2022-02-27 01:50:24 +0100
commit23685ddb3c7a4a9a0c757a12330b4cf45aa0707e (patch)
tree86769c1c7d7428021726a11596d51a217d25a40a /srcs/juloo.keyboard2/Theme.java
parentce5cee42a101f699493aea8311c087020672dc59 (diff)
downloadunexpected-keyboard-23685ddb3c7a4a9a0c757a12330b4cf45aa0707e.tar.gz
unexpected-keyboard-23685ddb3c7a4a9a0c757a12330b4cf45aa0707e.zip
Compute text size relative to key height
Instead of a fixed size that don't work at all for bigger screens. Other tweaks: - Use the value-land dimens to vary 'extra_horizontal_margin' - Move label size to Config, because it can change at runtime (rotation) - Slightly decrease the size of "long" symbols
Diffstat (limited to 'srcs/juloo.keyboard2/Theme.java')
-rw-r--r--srcs/juloo.keyboard2/Theme.java6
1 files changed, 0 insertions, 6 deletions
diff --git a/srcs/juloo.keyboard2/Theme.java b/srcs/juloo.keyboard2/Theme.java
index 52147d9..3d57fe7 100644
--- a/srcs/juloo.keyboard2/Theme.java
+++ b/srcs/juloo.keyboard2/Theme.java
@@ -16,9 +16,6 @@ public class Theme
public final int labelColor;
public final int subLabelColor;
- public final float labelTextSize;
- public final float sublabelTextSize;
-
public final float keyBorderRadius;
private final Paint _keyLabelPaint;
@@ -38,9 +35,6 @@ public class Theme
subLabelColor = s.getColor(R.styleable.keyboard_colorSubLabel, 0);
keyBorderRadius = s.getDimension(R.styleable.keyboard_keyBorderRadius, 0);
s.recycle();
- Resources res = context.getResources();
- labelTextSize = res.getDimension(R.dimen.label_text_size);
- sublabelTextSize = res.getDimension(R.dimen.sublabel_text_size);
_keyLabelPaint = initLabelPaint(Paint.Align.CENTER, null);
_keySubLabelPaint = initLabelPaint(Paint.Align.LEFT, null);
Typeface specialKeyFont = getSpecialKeyFont(context);