BStringItem: Set the low color to the list view color

instead of the low color, practically this should make little difference,
just a cleanup.
This commit is contained in:
John Scipione 2013-11-25 23:37:38 -05:00
parent e3be58f144
commit 8c6d549022

View File

@ -77,14 +77,17 @@ BStringItem::DrawItem(BView *owner, BRect frame, bool complete)
rgb_color lowColor = owner->LowColor();
if (IsSelected() || complete) {
if (IsSelected()) {
owner->SetHighColor(ui_color(B_LIST_SELECTED_BACKGROUND_COLOR));
owner->SetLowColor(owner->HighColor());
} else
owner->SetHighColor(lowColor);
rgb_color color;
if (IsSelected())
color = ui_color(B_LIST_SELECTED_BACKGROUND_COLOR);
else
color = owner->ViewColor();
owner->SetLowColor(color);
owner->SetHighColor(color);
owner->FillRect(frame);
}
} else
owner->SetLowColor(owner->ViewColor());
owner->MovePenTo(frame.left + be_control_look->DefaultLabelSpacing(),
frame.top + fBaselineOffset);