Ticket #12604: Patch-12604.patch

File Patch-12604.patch, 813 bytes (added by looncraz, 4 years ago)

Simplest fix

  • src/kits/interface/Button.cpp

    From 6ac411efd195c6ec0b96bfe73c6e6653697cbc5c Mon Sep 17 00:00:00 2001
    From: looncraz <looncraz@looncraz.net>
    Date: Tue, 12 Jul 2016 21:39:51 +0000
    Subject: [PATCH] Force using control text color for BButton
    
    Fixes 12604
    ---
     src/kits/interface/Button.cpp | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/kits/interface/Button.cpp b/src/kits/interface/Button.cpp
    index 6d3fd4b..9fc077c 100644
    a b BButton::Draw(BRect updateRect)  
    135135    BRect rect(Bounds());
    136136    rgb_color background = ViewColor();
    137137    rgb_color base = LowColor();
    138     rgb_color textColor = HighColor();
     138    rgb_color textColor = ui_color(B_CONTROL_TEXT_COLOR);
    139139
    140140    uint32 flags = be_control_look->Flags(this);
    141141    if (_Flag(FLAG_DEFAULT))