Gravity: Use Set*UIColor() instead of Set*Color(ui_color())
Thanks jessicah!
This commit is contained in:
parent
ad5c346a3f
commit
d1d1535a73
@ -43,7 +43,7 @@ ColorItem::DrawItem(BView* owner, BRect frame, bool complete)
|
|||||||
|
|
||||||
if (IsSelected() || complete) {
|
if (IsSelected() || complete) {
|
||||||
if (IsSelected()) {
|
if (IsSelected()) {
|
||||||
owner->SetHighColor(ui_color(B_LIST_SELECTED_BACKGROUND_COLOR));
|
owner->SetHighUIColor(B_LIST_SELECTED_BACKGROUND_COLOR);
|
||||||
owner->SetLowColor(owner->HighColor());
|
owner->SetLowColor(owner->HighColor());
|
||||||
} else
|
} else
|
||||||
owner->SetHighColor(lowColor);
|
owner->SetHighColor(lowColor);
|
||||||
@ -63,7 +63,7 @@ ColorItem::DrawItem(BView* owner, BRect frame, bool complete)
|
|||||||
owner->FillRect(colorRect);
|
owner->FillRect(colorRect);
|
||||||
|
|
||||||
// draw the border
|
// draw the border
|
||||||
owner->SetHighColor(ui_color(B_CONTROL_BORDER_COLOR));
|
owner->SetHighUIColor(B_CONTROL_BORDER_COLOR);
|
||||||
owner->StrokeRect(colorRect);
|
owner->StrokeRect(colorRect);
|
||||||
|
|
||||||
// draw the string
|
// draw the string
|
||||||
@ -77,9 +77,9 @@ ColorItem::DrawItem(BView* owner, BRect frame, bool complete)
|
|||||||
owner->SetHighColor(tint_color(textColor, B_LIGHTEN_2_TINT));
|
owner->SetHighColor(tint_color(textColor, B_LIGHTEN_2_TINT));
|
||||||
} else {
|
} else {
|
||||||
if (IsSelected())
|
if (IsSelected())
|
||||||
owner->SetHighColor(ui_color(B_LIST_SELECTED_ITEM_TEXT_COLOR));
|
owner->SetHighUIColor(B_LIST_SELECTED_ITEM_TEXT_COLOR);
|
||||||
else
|
else
|
||||||
owner->SetHighColor(ui_color(B_LIST_ITEM_TEXT_COLOR));
|
owner->SetHighUIColor(B_LIST_ITEM_TEXT_COLOR);
|
||||||
}
|
}
|
||||||
|
|
||||||
owner->DrawString(Text());
|
owner->DrawString(Text());
|
||||||
|
@ -42,7 +42,7 @@ RainbowItem::DrawItem(BView* owner, BRect frame, bool complete)
|
|||||||
|
|
||||||
if (IsSelected() || complete) {
|
if (IsSelected() || complete) {
|
||||||
if (IsSelected()) {
|
if (IsSelected()) {
|
||||||
owner->SetHighColor(ui_color(B_LIST_SELECTED_BACKGROUND_COLOR));
|
owner->SetHighUIColor(B_LIST_SELECTED_BACKGROUND_COLOR);
|
||||||
owner->SetLowColor(owner->HighColor());
|
owner->SetLowColor(owner->HighColor());
|
||||||
} else
|
} else
|
||||||
owner->SetHighColor(lowColor);
|
owner->SetHighColor(lowColor);
|
||||||
@ -71,7 +71,7 @@ RainbowItem::DrawItem(BView* owner, BRect frame, bool complete)
|
|||||||
owner->FillRect(colorRect, gradient);
|
owner->FillRect(colorRect, gradient);
|
||||||
|
|
||||||
// draw the border
|
// draw the border
|
||||||
owner->SetHighColor(ui_color(B_CONTROL_BORDER_COLOR));
|
owner->SetHighUIColor(B_CONTROL_BORDER_COLOR);
|
||||||
owner->StrokeRect(colorRect);
|
owner->StrokeRect(colorRect);
|
||||||
|
|
||||||
// draw the string
|
// draw the string
|
||||||
@ -85,9 +85,9 @@ RainbowItem::DrawItem(BView* owner, BRect frame, bool complete)
|
|||||||
owner->SetHighColor(tint_color(textColor, B_LIGHTEN_2_TINT));
|
owner->SetHighColor(tint_color(textColor, B_LIGHTEN_2_TINT));
|
||||||
} else {
|
} else {
|
||||||
if (IsSelected())
|
if (IsSelected())
|
||||||
owner->SetHighColor(ui_color(B_LIST_SELECTED_ITEM_TEXT_COLOR));
|
owner->SetHighUIColor(B_LIST_SELECTED_ITEM_TEXT_COLOR);
|
||||||
else
|
else
|
||||||
owner->SetHighColor(ui_color(B_LIST_ITEM_TEXT_COLOR));
|
owner->SetHighUIColor(B_LIST_ITEM_TEXT_COLOR);
|
||||||
}
|
}
|
||||||
|
|
||||||
owner->DrawString(Text());
|
owner->DrawString(Text());
|
||||||
|
Loading…
Reference in New Issue
Block a user