diff options
| author | Jules Aguillon | 2024-01-21 16:34:49 +0100 |
|---|---|---|
| committer | Jules Aguillon | 2024-01-21 16:34:49 +0100 |
| commit | ad7314a01684185f5cf33cc31ef35d1027776a88 (patch) | |
| tree | 189c2f9c8e085335689dfe30cb907cea5ba5c08e /srcs/juloo.keyboard2 | |
| parent | bef29da3dee4aadc1f2c199cea846502e14aca5b (diff) | |
| download | unexpected-keyboard-ad7314a01684185f5cf33cc31ef35d1027776a88.tar.gz unexpected-keyboard-ad7314a01684185f5cf33cc31ef35d1027776a88.zip | |
Move layout definitions into srcs/layouts
This separates the layout definitions from the special layouts
(bottom_row, greekmath) and other unrelated files (method, settings).
This is also a more intuitive location for layouts and make the resource
directory easier to navigate.
Under the hood, layouts are copied back into
build/generated-resources/xml.
Diffstat (limited to 'srcs/juloo.keyboard2')
| -rw-r--r-- | srcs/juloo.keyboard2/KeyValue.java | 6 | ||||
| -rw-r--r-- | srcs/juloo.keyboard2/prefs/LayoutsPreference.java | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/srcs/juloo.keyboard2/KeyValue.java b/srcs/juloo.keyboard2/KeyValue.java index 27ceaf4..dbd9e3e 100644 --- a/srcs/juloo.keyboard2/KeyValue.java +++ b/srcs/juloo.keyboard2/KeyValue.java @@ -317,9 +317,9 @@ public final class KeyValue { switch (name) { - /* These symbols have special meaning when in `res/xml` and are escaped in - standard layouts. The backslash is not stripped when parsed from the - custom layout option. */ + /* These symbols have special meaning when in `srcs/layouts` and are + escaped in standard layouts. The backslash is not stripped when parsed + from the custom layout option. */ case "\\?": return makeStringKey("?"); case "\\#": return makeStringKey("#"); case "\\@": return makeStringKey("@"); diff --git a/srcs/juloo.keyboard2/prefs/LayoutsPreference.java b/srcs/juloo.keyboard2/prefs/LayoutsPreference.java index 787800c..842a2f2 100644 --- a/srcs/juloo.keyboard2/prefs/LayoutsPreference.java +++ b/srcs/juloo.keyboard2/prefs/LayoutsPreference.java @@ -245,7 +245,7 @@ public class LayoutsPreference extends ListGroupPreference<LayoutsPreference.Lay public SystemLayout() {} } - /** The name of a layout defined in [res/xml]. */ + /** The name of a layout defined in [srcs/layouts]. */ public static final class NamedLayout implements Layout { public final String name; |
