[haiku-commits] haiku: hrev53328 - src/apps/stylededit

  • From: Ryan Leavengood <leavengood@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 2 Aug 2019 19:52:27 -0400 (EDT)

hrev53328 adds 1 changeset to branch 'master'
old head: ecba7b5c7ed271b1f5b7d13e42f0ea2e85a5d4d8
new head: 7451b647db26af0fedf1e07c2cfdf09ec28f1293
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=7451b647db26+%5Eecba7b5c7ed2

----------------------------------------------------------------------------

7451b647db26: StyledEdit: draw the status bar with the panel text color
  
  Hopefully this is the last piece of #4868.

                                  [ Ryan Leavengood <leavengood@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev53328
Commit:      7451b647db26af0fedf1e07c2cfdf09ec28f1293
URL:         https://git.haiku-os.org/haiku/commit/?id=7451b647db26
Author:      Ryan Leavengood <leavengood@xxxxxxxxx>
Date:        Fri Aug  2 23:49:59 2019 UTC

Ticket:      https://dev.haiku-os.org/ticket/4868

----------------------------------------------------------------------------

1 file changed, 1 insertion(+), 2 deletions(-)
src/apps/stylededit/StatusView.cpp | 3 +--

----------------------------------------------------------------------------

diff --git a/src/apps/stylededit/StatusView.cpp 
b/src/apps/stylededit/StatusView.cpp
index dbe1bcf12c..d4b18d428e 100644
--- a/src/apps/stylededit/StatusView.cpp
+++ b/src/apps/stylededit/StatusView.cpp
@@ -127,7 +127,6 @@ StatusView::Draw(BRect updateRect)
        }
 
        BRect bounds(Bounds());
-       rgb_color highColor = HighColor();
        SetHighColor(tint_color(ViewColor(), B_DARKEN_2_TINT));
        StrokeLine(bounds.LeftTop(), bounds.RightTop());
 
@@ -138,7 +137,7 @@ StatusView::Draw(BRect updateRect)
        }
 
        SetLowColor(ViewColor());
-       SetHighColor(highColor);
+       SetHighColor(ui_color(B_PANEL_TEXT_COLOR));
 
        font_height fontHeight;
        GetFontHeight(&fontHeight);


Other related posts: