apps: Convert to using Set*UIColor.

Signed-off-by: Augustin Cavalier <[email protected]>
Patches 0045-0075, 0077-0087 from looncraz, unmodified.
This commit is contained in:
looncraz
2016-01-04 07:33:09 -05:00
committed by Augustin Cavalier
parent f696e88a2c
commit fa19dd4470
108 changed files with 713 additions and 282 deletions
+5 -4
View File
@@ -576,7 +576,7 @@ ActivityView::ActivityView(const char* name, const BMessage* settings)
#endif
fSourcesLock("data sources")
{
SetLowColor(ui_color(B_PANEL_BACKGROUND_COLOR));
SetLowUIColor(B_PANEL_BACKGROUND_COLOR);
_Init(settings);
@@ -1121,7 +1121,6 @@ ActivityView::MessageReceived(BMessage* message)
break;
}
case kMsgUpdateResolution:
{
int32 resolution;
@@ -1479,7 +1478,9 @@ ActivityView::Draw(BRect updateRect)
// draw legend
BRect legendFrame = _LegendFrame();
SetLowColor(fLegendBackgroundColor);
if (LowUIColor() == B_NO_COLOR)
SetLowColor(fLegendBackgroundColor);
if (drawBackground) {
BRect backgroundFrame(legendFrame);
backgroundFrame.bottom += kDraggerSize;
@@ -1520,7 +1521,7 @@ ActivityView::Draw(BRect updateRect)
TruncateString(&label, B_TRUNCATE_MIDDLE, possibleLabelWidth);
if (drawBackground)
SetHighColor(ui_color(B_CONTROL_TEXT_COLOR));
SetHighColor(ui_color(B_PANEL_TEXT_COLOR));
if (be_control_look == NULL) {
DrawString(label.String(), BPoint(6 + colorBox.right, y));