diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2015-12-16 10:03:56 +0100 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2015-12-16 10:03:56 +0100 |
| commit | b5f65d6443ace3c6f1ce4c2c6226213539192409 (patch) | |
| tree | 0db22e27ce9a4291578aae1baf5c65bf87f802b1 | |
| parent | db983ac3c26a782a54abf59f6e3c6309a773a12a (diff) | |
TextInput: reduce opacity to warning if only num_lock is enabled
(bzr r4054.5.1)
| -rw-r--r-- | unity-shared/TextInput.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/unity-shared/TextInput.cpp b/unity-shared/TextInput.cpp index 360c8e571..ee111864b 100644 --- a/unity-shared/TextInput.cpp +++ b/unity-shared/TextInput.cpp @@ -232,6 +232,7 @@ void TextInput::OnLockStateChanged(bool) } warning_->SetVisible(caps_lock_on() || num_lock_on()); + warning_->SetOpacity((num_lock_on() && !caps_lock_on()) ? 0.3 : 1.0); warning_tooltip_.Release(); QueueRelayout(); QueueDraw(); |
