summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorandreykproductengine <andreykproductengine@lindenlab.com>2018-07-10 17:09:47 +0300
committerandreykproductengine <andreykproductengine@lindenlab.com>2018-07-10 17:09:47 +0300
commite61d7ac0098d89cc6b124dda2e040120c01d2bee (patch)
tree0bdc26b29df36ff79934773390612e4fd500f92b /indra/llui
parent26b6cc516076c55befff3fbd9c21f47565bbc390 (diff)
MAINT-8833 EEP UI should be either responsive or indicate that it is disabled.
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llslider.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/llui/llslider.cpp b/indra/llui/llslider.cpp
index ebbb951ee6..6925c0a130 100644
--- a/indra/llui/llslider.cpp
+++ b/indra/llui/llslider.cpp
@@ -331,8 +331,9 @@ void LLSlider::draw()
highlight_rect.set(track_rect.mLeft, track_rect.mTop, track_rect.mRight, track_rect.mBottom);
}
- trackImage->draw(track_rect, LLColor4::white % alpha);
- trackHighlightImage->draw(highlight_rect, LLColor4::white % alpha);
+ LLColor4 color = isInEnabledChain() ? LLColor4::white % alpha : LLColor4::white % (0.6f * alpha);
+ trackImage->draw(track_rect, color);
+ trackHighlightImage->draw(highlight_rect, color);
// Thumb
if (hasFocus())