From 8083e779cf0195e321a09a4ea96958fbab54fa04 Mon Sep 17 00:00:00 2001 From: Philippe Saint-Pierre Date: Mon, 29 Jun 2015 15:20:33 -0400 Subject: [PATCH] Use B_CONTROL_HIGHLIGHT_COLOR to draw outline In Tracker's TitleView, use an user defined color to draw outline when moving columns rather than hardcoded color. --- src/kits/tracker/TitleView.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/kits/tracker/TitleView.cpp b/src/kits/tracker/TitleView.cpp index 092c10e003..f7a771b56a 100644 --- a/src/kits/tracker/TitleView.cpp +++ b/src/kits/tracker/TitleView.cpp @@ -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) @@ -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); }