abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/Theme.java
diff options
context:
space:
mode:
authorJules Aguillon2024-02-17 19:31:52 +0100
committerJules Aguillon2024-02-17 23:28:31 +0100
commit146d5203254aff5fe19b502a922c60a84c31686a (patch)
treec42662fbb6cb0e849694ce44be448ef2b1e1cadf /srcs/juloo.keyboard2/Theme.java
parent065d9520e571eccca21e28d0e4003ebd4b7079f4 (diff)
downloadunexpected-keyboard-146d5203254aff5fe19b502a922c60a84c31686a.tar.gz
unexpected-keyboard-146d5203254aff5fe19b502a922c60a84c31686a.zip
compose: Grey out keys that are not in sequence
Keys that are not in the pending compose sequence are greyed out with the new 'FLAG_GREYED' flag.
Diffstat (limited to 'srcs/juloo.keyboard2/Theme.java')
-rw-r--r--srcs/juloo.keyboard2/Theme.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/srcs/juloo.keyboard2/Theme.java b/srcs/juloo.keyboard2/Theme.java
index 0319c99..aedf33a 100644
--- a/srcs/juloo.keyboard2/Theme.java
+++ b/srcs/juloo.keyboard2/Theme.java
@@ -17,6 +17,7 @@ public class Theme
public final int labelColor;
public final int subLabelColor;
public final int secondaryLabelColor;
+ public final int greyedLabelColor;
public final float keyBorderRadius;
public final float keyBorderWidth;
@@ -50,6 +51,8 @@ public class Theme
subLabelColor = s.getColor(R.styleable.keyboard_colorSubLabel, 0);
secondaryLabelColor = adjustLight(labelColor,
s.getFloat(R.styleable.keyboard_secondaryDimming, 0.25f));
+ greyedLabelColor = adjustLight(labelColor,
+ s.getFloat(R.styleable.keyboard_greyedDimming, 0.5f));
keyBorderRadius = s.getDimension(R.styleable.keyboard_keyBorderRadius, 0);
keyBorderWidth = s.getDimension(R.styleable.keyboard_keyBorderWidth, 0);
keyBorderWidthActivated = s.getDimension(R.styleable.keyboard_keyBorderWidthActivated, 0);