From 146d5203254aff5fe19b502a922c60a84c31686a Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sat, 17 Feb 2024 19:31:52 +0100 Subject: 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. --- srcs/juloo.keyboard2/Theme.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'srcs/juloo.keyboard2/Theme.java') 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); -- cgit v1.2.3