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:
parent
d3fc049b78
commit
a99deff476
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user