Ticket #10834: 0001-Tweaks-to-GUI-default-colours.patch

File 0001-Tweaks-to-GUI-default-colours.patch, 2.2 KB (added by humdinger, 5 years ago)

the patch

  • src/kits/interface/InterfaceDefs.cpp

    From 2b3859d8154480265406808068bd75c152b75910 Mon Sep 17 00:00:00 2001
    From: Humdinger <humdingerb@gmail.com>
    Date: Wed, 14 May 2014 18:25:44 +0200
    Subject: [PATCH] Tweaks to GUI default colours.
    
    * Changes selected menu/list items to white on desktop-blue
    * Changed success/failure colours to less stark green/red, as
      seen at http://clrs.cc/ suggested by John on the mailinglist:
      http://www.freelists.org/post/haiku-commits/haiku-hrev47154-srcserversnotification,1
    ---
     src/kits/interface/InterfaceDefs.cpp | 12 ++++++------
     1 file changed, 6 insertions(+), 6 deletions(-)
    
    diff --git a/src/kits/interface/InterfaceDefs.cpp b/src/kits/interface/InterfaceDefs.cpp
    index 8c5a7e0..4a8554c 100644
    a b static const rgb_color _kDefaultColors[kColorWhichCount] = {  
    7575    {255, 203, 0, 255},     // B_WINDOW_TAB_COLOR
    7676    {0, 0, 229, 255},       // B_KEYBOARD_NAVIGATION_COLOR
    7777    {51, 102, 152, 255},    // B_DESKTOP_COLOR
    78     {153, 153, 153, 255},   // B_MENU_SELECTED_BACKGROUND_COLOR
     78    {51, 102, 152, 255},    // B_MENU_SELECTED_BACKGROUND_COLOR
    7979    {0, 0, 0, 255},         // B_MENU_ITEM_TEXT_COLOR
    80     {0, 0, 0, 255},         // B_MENU_SELECTED_ITEM_TEXT_COLOR
     80    {255, 255, 255, 255},   // B_MENU_SELECTED_ITEM_TEXT_COLOR
    8181    {0, 0, 0, 255},         // B_MENU_SELECTED_BORDER_COLOR
    8282    {0, 0, 0, 255},         // B_PANEL_TEXT_COLOR
    8383    {255, 255, 255, 255},   // B_DOCUMENT_BACKGROUND_COLOR
    static const rgb_color _kDefaultColors[kColorWhichCount] = {  
    9898    {232, 232, 232, 255},   // B_WINDOW_INACTIVE_BORDER_COLOR
    9999    {27, 82, 140, 255},     // B_CONTROL_MARK_COLOR
    100100    {255, 255, 255, 255},   // B_LIST_BACKGROUND_COLOR
    101     {153, 153, 153, 255},   // B_LIST_SELECTED_BACKGROUND_COLOR
     101    {51, 102, 152, 255},    // B_LIST_SELECTED_BACKGROUND_COLOR
    102102    {0, 0, 0, 255},         // B_LIST_ITEM_TEXT_COLOR
    103     {0, 0, 0, 255},         // B_LIST_SELECTED_ITEM_TEXT_COLOR
     103    {255, 255, 255, 255},   // B_LIST_SELECTED_ITEM_TEXT_COLOR
    104104    {216, 216, 216, 255},   // B_SCROLL_BAR_THUMB_COLOR
    105105    // 100...
    106     {0, 255, 0, 255},       // B_SUCCESS_COLOR
    107     {255, 0, 0, 255},       // B_FAILURE_COLOR
     106    {46, 204, 64, 255},     // B_SUCCESS_COLOR
     107    {255, 65, 54, 255},     // B_FAILURE_COLOR
    108108    {}
    109109};
    110110const rgb_color* BPrivate::kDefaultColors = &_kDefaultColors[0];