From a99deff476c965c22b7935c35aa42a74f228f9d0 Mon Sep 17 00:00:00 2001 From: looncraz Date: Sun, 10 Jan 2016 14:41:11 -0600 Subject: [PATCH] Tracker Desktop Icons Using Wrong Text Color Was using the panel color without checking if we were the desktop view. This corrects the reported issue where icon label outlines would look incorrect. Signed-off-by: Jessica Hamilton --- src/kits/tracker/TextWidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/kits/tracker/TextWidget.cpp b/src/kits/tracker/TextWidget.cpp index 676239519f..ae8f35d9a5 100644 --- a/src/kits/tracker/TextWidget.cpp +++ b/src/kits/tracker/TextWidget.cpp @@ -576,6 +576,9 @@ BTextWidget::Draw(BRect eraseRect, BRect textRect, float, BPoseView* view, drawView->GetFont(&font); rgb_color textColor = ui_color(B_PANEL_TEXT_COLOR); + if (view->IsDesktopWindow()) + textColor = view->DeskTextColor(); + if (textColor.Brightness() < 100) { // dark text on light outline rgb_color glowColor = ui_color(B_SHINE_COLOR);