From eb56c80ffb8521ac6076abf9319874b848a3df3c Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sun, 6 Aug 2023 18:17:59 +0200 Subject: Elide custom keys labels Make the font smaller for custom keys with a length above 1. Draw up to 4 characters on keys. --- srcs/juloo.keyboard2/KeyValue.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'srcs/juloo.keyboard2/KeyValue.java') 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) -- cgit v1.2.3