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 <jessica.l.hamilton@gmail.com>
This commit is contained in:
looncraz 2016-01-10 14:41:11 -06:00 committed by Jessica Hamilton
parent d3fc049b78
commit a99deff476

View File

@ -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);