Ticket #12576: Tracker-Desktop-Icons.patch

File Tracker-Desktop-Icons.patch, 1021 bytes (added by looncraz, 8 years ago)
  • src/kits/tracker/TextWidget.cpp

    From db5ec2b4668350c0626896186493d9b240816133 Mon Sep 17 00:00:00 2001
    From: looncraz <looncraz@looncraz.net>
    Date: Sun, 10 Jan 2016 14:41:11 -0600
    Subject: [PATCH 1/2] 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.
    ---
     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 6762395..ae8f35d 100644
    a b BTextWidget::Draw(BRect eraseRect, BRect textRect, float, BPoseView* view,  
    576576        drawView->GetFont(&font);
    577577
    578578        rgb_color textColor = ui_color(B_PANEL_TEXT_COLOR);
     579        if (view->IsDesktopWindow())
     580            textColor = view->DeskTextColor();
     581
    579582        if (textColor.Brightness() < 100) {
    580583            // dark text on light outline
    581584            rgb_color glowColor = ui_color(B_SHINE_COLOR);