diff options
| author | Marco Trevisan (TreviƱo) <mail@3v1n0.net> | 2015-12-18 00:01:20 +0000 |
|---|---|---|
| committer | CI Train Bot <ci-train-bot@canonical.com> | 2015-12-18 00:01:20 +0000 |
| commit | 4321320e490073b0f4012909c3b945f7a71aa3c6 (patch) | |
| tree | 0cbdbf40bd43c0432f50f35689626eb3caa4ebbf | |
| parent | 66e4798919795efa2085397a0558083daa41fe08 (diff) | |
| parent | b5f65d6443ace3c6f1ce4c2c6226213539192409 (diff) | |
TextInput: reduce opacity to warning if only num_lock is enabled
Approved by: PS Jenkins bot, Andrea Azzarone (bzr r4064)
| -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(); |
