diff options
| author | Jules Aguillon | 2021-12-30 00:52:50 +0100 |
|---|---|---|
| committer | Jules Aguillon | 2021-12-30 00:52:50 +0100 |
| commit | 29367f127d8927b063c1f869646d489df83079be (patch) | |
| tree | 9baf3cbee781d4272a6e76c77cf9b6a7dfc47dca /srcs/juloo.keyboard2/Theme.java | |
| parent | 093a00c572a29d292bc6bbb09559611cb61e1331 (diff) | |
| download | unexpected-keyboard-29367f127d8927b063c1f869646d489df83079be.tar.gz unexpected-keyboard-29367f127d8927b063c1f869646d489df83079be.zip | |
Move the border radius from Config to Theme
Also, draw activated keys with a round border too.
Diffstat (limited to 'srcs/juloo.keyboard2/Theme.java')
| -rw-r--r-- | srcs/juloo.keyboard2/Theme.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/srcs/juloo.keyboard2/Theme.java b/srcs/juloo.keyboard2/Theme.java index 04f365f..0f46cd0 100644 --- a/srcs/juloo.keyboard2/Theme.java +++ b/srcs/juloo.keyboard2/Theme.java @@ -15,9 +15,12 @@ public class Theme public final int activatedColor; public final int labelColor; public final int subLabelColor; + public final float labelTextSize; public final float sublabelTextSize; + public final float keyBorderRadius; + private final Paint _keyLabelPaint; private final Paint _specialKeyLabelPaint; private final Paint _keySubLabelPaint; @@ -33,6 +36,7 @@ public class Theme activatedColor = s.getColor(R.styleable.keyboard_colorLabelActivated, 0); lockedColor = s.getColor(R.styleable.keyboard_colorLabelLocked, 0); 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); |
