Tracker: Set read-only low color on ColumnResize()

Change-Id: I6344d7e3e6363da068b8b5ede818c01070c7484c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8998
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
John Scipione
2025-02-18 21:13:51 +00:00
committed by waddlesplash
parent 046f27c114
commit 13d645a0fe
2 changed files with 13 additions and 1 deletions
+9 -1
View File
@@ -9196,7 +9196,10 @@ BPoseView::ColumnRedraw(BRect updateRect)
updateRegion.Set(updateRect);
ConstrainClippingRegion(&updateRegion);
offscreenView->SetDrawingMode(B_OP_COPY);
offscreenView->SetLowColor(LowColor());
if (!TargetVolumeIsReadOnly())
offscreenView->SetLowUIColor(LowUIColor());
else
offscreenView->SetLowUIColor(LowUIColor(), ReadOnlyTint(LowUIColor()));
for (int32 index = startIndex; index < poseCount; index++) {
BPose* pose = poseList->ItemAt(index);
@@ -9210,6 +9213,11 @@ BPoseView::ColumnRedraw(BRect updateRect)
offscreenView->Sync();
DrawBitmap(sOffscreen->Bitmap(), srcRect, dstRect);
if (!TargetVolumeIsReadOnly())
offscreenView->SetLowUIColor(LowUIColor());
else
offscreenView->SetLowUIColor(LowUIColor(), ReadOnlyTint(LowUIColor()));
location.y += fListElemHeight;
if (location.y > updateRect.bottom)
break;
+4
View File
@@ -78,6 +78,10 @@ _DrawLine(BPoseView* view, BPoint from, BPoint to)
static void
_UndrawLine(BPoseView* view, BPoint from, BPoint to)
{
if (!view->TargetVolumeIsReadOnly())
view->SetLowUIColor(view->LowUIColor());
else
view->SetLowUIColor(view->LowUIColor(), ReadOnlyTint(view->LowUIColor()));
view->StrokeLine(from, to, B_SOLID_LOW);
}