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:
parent
e3be58f144
commit
8c6d549022
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user