Ticket #12596: Deskbar-TimeViewText.patch

File Deskbar-TimeViewText.patch, 957 bytes (added by looncraz, 8 years ago)
  • src/apps/deskbar/TimeView.cpp

    From f99298df7e3f7c5c8132a1c4ea0b7a880fd7bf05 Mon Sep 17 00:00:00 2001
    From: looncraz <looncraz@looncraz.net>
    Date: Sun, 17 Jan 2016 12:20:13 +0000
    Subject: [PATCH] Deskbar TimeView Text Render Fix
    
    Erroneous use of SetLowUIColor(ViewUIColor()) when the old API was more
    appropriate resulted in the tint value being ignored which resulted in some
    text rendering issues with certain color combinations and LCD subpixel aliasing.
    
    Fixes ticket# 12596
    ---
     src/apps/deskbar/TimeView.cpp | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/apps/deskbar/TimeView.cpp b/src/apps/deskbar/TimeView.cpp
    index 7c08034..25b54e6 100644
    a b TTimeView::Draw(BRect /*updateRect*/)  
    152152    PushState();
    153153
    154154    SetHighColor(ViewColor());
    155     SetLowUIColor(ViewUIColor());
     155    SetLowColor(ViewColor());
    156156    FillRect(Bounds());
    157157    SetHighUIColor(B_MENU_ITEM_TEXT_COLOR);
    158158