Skip to content

Commit

Permalink
Use B_CONTROL_HIGHLIGHT_COLOR to draw outline
Browse files Browse the repository at this point in the history
In Tracker's TitleView, use an user defined color to draw outline when
moving columns rather than hardcoded color.
  • Loading branch information
stpere committed Jun 30, 2015
1 parent a8962b3 commit 8083e77
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/kits/tracker/TitleView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ static rgb_color sLightShadowColor;
static rgb_color sShadowColor;
static rgb_color sDarkShadowColor;

const rgb_color kHighlightColor = {100, 100, 210, 255};


static void
_DrawLine(BPoseView* view, BPoint from, BPoint to)
Expand All @@ -90,7 +88,7 @@ _DrawOutline(BView* view, BRect where)
where.right++;
where.bottom--;
rgb_color highColor = view->HighColor();
view->SetHighColor(kHighlightColor);
view->SetHighColor(ui_color(B_CONTROL_HIGHLIGHT_COLOR));
view->StrokeRect(where);
view->SetHighColor(highColor);
}
Expand Down

0 comments on commit 8083e77

Please sign in to comment.