diff options
author | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-07 02:59:31 +0000 |
---|---|---|
committer | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-07 02:59:31 +0000 |
commit | b78804c8b2abe1ea162383795e612af1a09e273f (patch) | |
tree | e9c919a0d7ac3cf2553a5276e965fce5f0c5517e /chrome/browser/cocoa/wrench_menu_button_cell.mm | |
parent | 3ba7e0887015ba6a59579c4de08a6d609f851c23 (diff) | |
download | chromium_src-b78804c8b2abe1ea162383795e612af1a09e273f.zip chromium_src-b78804c8b2abe1ea162383795e612af1a09e273f.tar.gz chromium_src-b78804c8b2abe1ea162383795e612af1a09e273f.tar.bz2 |
[Mac] Do not use |+[NSColor selectedMenuItemColor]| in a gradient due to color space issues.
BUG=49448
TEST=On both 10.5 and 10.6, open the Wrench menu and click a button. Button has blue gradient.
Review URL: http://codereview.chromium.org/3046052
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55327 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/wrench_menu_button_cell.mm')
-rw-r--r-- | chrome/browser/cocoa/wrench_menu_button_cell.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/wrench_menu_button_cell.mm b/chrome/browser/cocoa/wrench_menu_button_cell.mm index 61edb5c..0b63143 100644 --- a/chrome/browser/cocoa/wrench_menu_button_cell.mm +++ b/chrome/browser/cocoa/wrench_menu_button_cell.mm @@ -26,7 +26,7 @@ NSColor* end = [NSColor colorWithDeviceWhite:0.922 alpha:1.0]; if ([self isHighlighted]) { start = [NSColor colorWithDeviceRed:0.396 green:0.641 blue:0.941 alpha:1.0]; - end = [NSColor selectedMenuItemColor]; + end = [NSColor colorWithDeviceRed:0.157 green:0.384 blue:0.929 alpha:1.0]; } scoped_nsobject<NSGradient> gradient( |