[haiku-commits] haiku: hrev44562 - src/kits/interface

  • From: leavengood@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 20 Aug 2012 00:19:00 +0200 (CEST)

hrev44562 adds 1 changeset to branch 'master'
old head: fa2fa02613347204e0e1aa2e588f5e4a4d19d108
new head: d7f6b4c18c23ab908555645449f1f6cd7436a1e6

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

d7f6b4c: ControlLook: Don't tint the selected menu item color.
  
  Now that we use the actual selected menu item ui_color, this tinting is not
  needed. In fact it makes the selected item too dark.
  
  Thanks diver for noticing.

                                  [ Ryan Leavengood <leavengood@xxxxxxxxx> ]

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

Revision:    hrev44562
Commit:      d7f6b4c18c23ab908555645449f1f6cd7436a1e6
URL:         http://cgit.haiku-os.org/haiku/commit/?id=d7f6b4c
Author:      Ryan Leavengood <leavengood@xxxxxxxxx>
Date:        Sun Aug 19 22:06:57 2012 UTC

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

1 file changed, 1 deletion(-)
src/kits/interface/ControlLook.cpp |    1 -

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

diff --git a/src/kits/interface/ControlLook.cpp 
b/src/kits/interface/ControlLook.cpp
index a0d8a11..00c945e 100644
--- a/src/kits/interface/ControlLook.cpp
+++ b/src/kits/interface/ControlLook.cpp
@@ -344,7 +344,6 @@ BControlLook::DrawMenuItemBackground(BView* view, BRect& 
rect,
        if ((flags & B_ACTIVATED) != 0) {
                topTint = 0.9;
                bottomTint = 1.05;
-               selectedColor = tint_color(base, 1.26);
        } else if ((flags & B_DISABLED) != 0) {
                topTint = 0.80;
                bottomTint = 1.07;


Other related posts:

  • » [haiku-commits] haiku: hrev44562 - src/kits/interface - leavengood