ColumnListView: preserve view high color
This commit is contained in:
@@ -1547,8 +1547,6 @@ BColumnListView::DrawLatch(BView* view, BRect rect, LatchType position, BRow*)
|
||||
{
|
||||
const int32 rectInset = 4;
|
||||
|
||||
view->SetHighColor(0, 0, 0);
|
||||
|
||||
// make square
|
||||
int32 sideLen = rect.IntegerWidth();
|
||||
if (sideLen > rect.IntegerHeight())
|
||||
@@ -1575,6 +1573,9 @@ BColumnListView::DrawLatch(BView* view, BRect rect, LatchType position, BRow*)
|
||||
itemRect.bottom += 1;
|
||||
}
|
||||
|
||||
rgb_color highColor = view->HighColor();
|
||||
view->SetHighColor(0, 0, 0);
|
||||
|
||||
switch (position) {
|
||||
case B_OPEN_LATCH:
|
||||
view->StrokeRect(itemRect);
|
||||
@@ -1618,6 +1619,8 @@ BColumnListView::DrawLatch(BView* view, BRect rect, LatchType position, BRow*)
|
||||
// No drawing
|
||||
break;
|
||||
}
|
||||
|
||||
view->SetHighColor(highColor);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user