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