diff options
| author | Jules Aguillon | 2023-08-06 18:17:59 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2023-08-06 18:22:15 +0200 |
| commit | eb56c80ffb8521ac6076abf9319874b848a3df3c (patch) | |
| tree | 34cb094a467289a5e2226661da1c937454a0e1ea /srcs/juloo.keyboard2/KeyValue.java | |
| parent | 4d10556d4904086664f14ac3b900e65505a19fe7 (diff) | |
| download | unexpected-keyboard-eb56c80ffb8521ac6076abf9319874b848a3df3c.tar.gz unexpected-keyboard-eb56c80ffb8521ac6076abf9319874b848a3df3c.zip | |
Elide custom keys labels
Make the font smaller for custom keys with a length above 1.
Draw up to 4 characters on keys.
Diffstat (limited to 'srcs/juloo.keyboard2/KeyValue.java')
| -rw-r--r-- | srcs/juloo.keyboard2/KeyValue.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/srcs/juloo.keyboard2/KeyValue.java b/srcs/juloo.keyboard2/KeyValue.java index a394240..f15eb68 100644 --- a/srcs/juloo.keyboard2/KeyValue.java +++ b/srcs/juloo.keyboard2/KeyValue.java @@ -296,7 +296,7 @@ final class KeyValue if (str.length() == 1) return new KeyValue(str, Kind.Char, str.charAt(0), 0); else - return new KeyValue(str, Kind.String, 0, 0); + return new KeyValue(str, Kind.String, 0, FLAG_SMALLER_FONT); } public static KeyValue getKeyByName(String name) |
