From 002064caf3160e41bbe06d6c6ff0f9b60c32e1a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Mon, 28 Jul 2014 13:00:03 +0200 Subject: [PATCH] webwatch: Use ui_color() for text --- src/apps/webwatch/WatchView.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/apps/webwatch/WatchView.cpp b/src/apps/webwatch/WatchView.cpp index e2bda77cc7..b0ab5bf9ff 100644 --- a/src/apps/webwatch/WatchView.cpp +++ b/src/apps/webwatch/WatchView.cpp @@ -22,6 +22,7 @@ #include #include +#include #include #include #include @@ -34,9 +35,6 @@ #define B_TRANSLATION_CONTEXT "WatchView" -const rgb_color COLOR_FOREGROUND = { 0, 0, 0 }; - - WatchView::WatchView() : BView(BRect(0, 0, 1, 1), 0, 0, 0) @@ -106,7 +104,7 @@ void WatchView::Draw(BRect updateRect) FillRect(updateRect); SetLowColor(Parent()->ViewColor()); - SetHighColor(COLOR_FOREGROUND); + SetHighColor(ui_color(B_MENU_ITEM_TEXT_COLOR)); SetDrawingMode(B_OP_OVER); DrawString(string, BPoint(x, y)); }