The PositionSlider now darkens its filled color if its drawn disabled.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6790 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -300,7 +300,8 @@ PositionSlider::DrawBar()
|
||||
frame.top++;
|
||||
frame.left++;
|
||||
frame.right = ThumbFrame().left + ThumbFrame().Width() / 2;
|
||||
view->SetHighColor(ui_color(B_CONTROL_HIGHLIGHT_COLOR));
|
||||
view->SetHighColor(IsEnabled() ? ui_color(B_CONTROL_HIGHLIGHT_COLOR)
|
||||
: tint_color(ui_color(B_CONTROL_HIGHLIGHT_COLOR), B_DARKEN_1_TINT));
|
||||
view->FillRect(frame);
|
||||
|
||||
frame.left = frame.right + 1;
|
||||
@@ -311,7 +312,7 @@ PositionSlider::DrawBar()
|
||||
rgb_color cornerColor = tint_color(ViewColor(), B_DARKEN_1_TINT);
|
||||
rgb_color darkColor = tint_color(ViewColor(), B_DARKEN_3_TINT);
|
||||
rgb_color shineColor = ui_color(B_SHINE_COLOR);
|
||||
rgb_color shadowColor =ui_color(B_SHADOW_COLOR);
|
||||
rgb_color shadowColor = ui_color(B_SHADOW_COLOR);
|
||||
if (!IsEnabled()) {
|
||||
darkColor = tint_color(ViewColor(), B_DARKEN_1_TINT);
|
||||
shineColor = tint_color(shineColor, B_DARKEN_2_TINT);
|
||||
|
||||
Reference in New Issue
Block a user