mirror of
https://github.com/Julow/Unexpected-Keyboard.git
synced 2024-11-22 15:23:11 +01:00
Highlight activated keys label
Rendering change only.
This commit is contained in:
parent
2aa98de7aa
commit
c1751578ef
@ -301,15 +301,14 @@ public class Keyboard2View extends View
|
||||
|
||||
private int labelColor(KeyValue k, boolean isKeyDown, boolean sublabel)
|
||||
{
|
||||
if (isKeyDown && k.hasFlags(KeyValue.FLAG_LATCH))
|
||||
if (isKeyDown)
|
||||
{
|
||||
int flags = _pointers.getKeyFlags(k);
|
||||
if (flags != -1)
|
||||
{
|
||||
if ((flags & KeyValue.FLAG_LOCKED) != 0)
|
||||
return _theme.lockedColor;
|
||||
if ((flags & KeyValue.FLAG_LATCH) == 0)
|
||||
return _theme.activatedColor;
|
||||
return _theme.activatedColor;
|
||||
}
|
||||
}
|
||||
if (k.hasFlags(KeyValue.FLAG_SECONDARY))
|
||||
|
Loading…
Reference in New Issue
Block a user