Tracker: remove desktop check for text colors in poseview

Change-Id: I4db3cd5525242314bd7177dcdd25cd8ec0aa1f7f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3406
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Reviewed-by: John Scipione <jscipione@gmail.com>
This commit is contained in:
Pascal Abresch 2020-11-21 18:43:28 +01:00 committed by waddlesplash
parent 516510a226
commit 7866835b41

View File

@ -540,15 +540,10 @@ BTextWidget::Draw(BRect eraseRect, BRect textRect, float, BPoseView* view,
// set high color // set high color
rgb_color highColor; rgb_color highColor;
if (view->IsDesktopWindow()) { if (selected)
if (selected)
highColor = ui_color(B_DOCUMENT_BACKGROUND_COLOR);
else
highColor = view->DeskTextColor();
} else if (selected && view->Window()->IsActive()) {
highColor = ui_color(B_DOCUMENT_BACKGROUND_COLOR); highColor = ui_color(B_DOCUMENT_BACKGROUND_COLOR);
} else else
highColor = kBlack; highColor = view->DeskTextColor();
if (clipboardMode == kMoveSelectionTo && !selected) { if (clipboardMode == kMoveSelectionTo && !selected) {
drawView->SetDrawingMode(B_OP_ALPHA); drawView->SetDrawingMode(B_OP_ALPHA);