abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/Theme.java
diff options
context:
space:
mode:
authorMax Schillinger2022-02-02 21:46:23 +0100
committerJules Aguillon2022-02-06 23:49:43 +0100
commit93edc4ac42f6fb0a59b7bc619a1334fefcfdec22 (patch)
tree0f96f5d0ded5b346fa29f3531878e3b300a0258f /srcs/juloo.keyboard2/Theme.java
parent7383cc4b68c20129c9c58730a3d530e7922e8404 (diff)
downloadunexpected-keyboard-93edc4ac42f6fb0a59b7bc619a1334fefcfdec22.tar.gz
unexpected-keyboard-93edc4ac42f6fb0a59b7bc619a1334fefcfdec22.zip
Allow egde keys instead of corner keys (swipe vertically/horizontally)
Add a new boolean parameter "edgekeys" for defining keys that have the additional (swipe) keys on the edges (top, right, left, bottom) instead of at the corners (top left, top right, bottom left, bottom right).
Diffstat (limited to 'srcs/juloo.keyboard2/Theme.java')
-rw-r--r--srcs/juloo.keyboard2/Theme.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/srcs/juloo.keyboard2/Theme.java b/srcs/juloo.keyboard2/Theme.java
index 0f46cd0..52147d9 100644
--- a/srcs/juloo.keyboard2/Theme.java
+++ b/srcs/juloo.keyboard2/Theme.java
@@ -54,10 +54,10 @@ public class Theme
return p;
}
- public Paint subLabelPaint(boolean special_font, boolean align_right)
+ public Paint subLabelPaint(boolean special_font, Paint.Align align)
{
Paint p = special_font ? _specialKeySubLabelPaint : _keySubLabelPaint;
- p.setTextAlign(align_right ? Paint.Align.RIGHT : Paint.Align.LEFT);
+ p.setTextAlign(align);
return p;
}