webwatch: Use ui_color() for text
This commit is contained in:
parent
b2bf8f4504
commit
002064caf3
@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
#include <Alert.h>
|
#include <Alert.h>
|
||||||
#include <Deskbar.h>
|
#include <Deskbar.h>
|
||||||
|
#include <InterfaceDefs.h>
|
||||||
#include <MenuItem.h>
|
#include <MenuItem.h>
|
||||||
#include <PopUpMenu.h>
|
#include <PopUpMenu.h>
|
||||||
#include <String.h>
|
#include <String.h>
|
||||||
@ -34,9 +35,6 @@
|
|||||||
#define B_TRANSLATION_CONTEXT "WatchView"
|
#define B_TRANSLATION_CONTEXT "WatchView"
|
||||||
|
|
||||||
|
|
||||||
const rgb_color COLOR_FOREGROUND = { 0, 0, 0 };
|
|
||||||
|
|
||||||
|
|
||||||
WatchView::WatchView()
|
WatchView::WatchView()
|
||||||
:
|
:
|
||||||
BView(BRect(0, 0, 1, 1), 0, 0, 0)
|
BView(BRect(0, 0, 1, 1), 0, 0, 0)
|
||||||
@ -106,7 +104,7 @@ void WatchView::Draw(BRect updateRect)
|
|||||||
FillRect(updateRect);
|
FillRect(updateRect);
|
||||||
|
|
||||||
SetLowColor(Parent()->ViewColor());
|
SetLowColor(Parent()->ViewColor());
|
||||||
SetHighColor(COLOR_FOREGROUND);
|
SetHighColor(ui_color(B_MENU_ITEM_TEXT_COLOR));
|
||||||
SetDrawingMode(B_OP_OVER);
|
SetDrawingMode(B_OP_OVER);
|
||||||
DrawString(string, BPoint(x, y));
|
DrawString(string, BPoint(x, y));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user