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;
|
||||
|
||||
Reference in New Issue
Block a user