diff options
author | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-07 11:31:52 +0000 |
---|---|---|
committer | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-07 11:31:52 +0000 |
commit | b450d52e2faad05e77ab4dca7db18d45f6d60a08 (patch) | |
tree | a06c785db2e59b0314b3daba20270dcc27645f82 /chrome/browser | |
parent | 33cb5cbb5fd3e81c7b83584da04b1964a91395d9 (diff) | |
download | chromium_src-b450d52e2faad05e77ab4dca7db18d45f6d60a08.zip chromium_src-b450d52e2faad05e77ab4dca7db18d45f6d60a08.tar.gz chromium_src-b450d52e2faad05e77ab4dca7db18d45f6d60a08.tar.bz2 |
Mac: Change translate infobar gradients to light grey.
BUG=39813
TEST=translate infobars should have a very light gray gradient background.
Review URL: http://codereview.chromium.org/2814049
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51707 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/cocoa/translate/translate_infobar_base.mm | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/chrome/browser/cocoa/translate/translate_infobar_base.mm b/chrome/browser/cocoa/translate/translate_infobar_base.mm index 66eda56..0da7ca8 100644 --- a/chrome/browser/cocoa/translate/translate_infobar_base.mm +++ b/chrome/browser/cocoa/translate/translate_infobar_base.mm @@ -29,10 +29,6 @@ using TranslateInfoBarUtilities::VerifyControlOrderAndSpacing; using TranslateInfoBarUtilities::CreateLabel; using TranslateInfoBarUtilities::AddMenuItem; -// Colors for translate infobar gradient background. -const int kGreyTopColor[] = {0xC0, 0xC0, 0xC0}; -const int kGreyBottomColor[] = {0xCC, 0xCC, 0xCC}; - #pragma mark TranslateInfoBarUtilities helper functions. namespace TranslateInfoBarUtilities { @@ -138,7 +134,7 @@ InfoBar* TranslateInfoBarDelegate::CreateInfoBar() { // Reloads text for all labels for the current state. - (void)loadLabelText:(TranslateErrors::Type)error; -// Makes the infobar grey. +// Set the infobar background gradient. - (void)setInfoBarGradientColor; // Main function to update the toolbar graphic state and data model after @@ -231,22 +227,15 @@ InfoBar* TranslateInfoBarDelegate::CreateInfoBar() { } - (void)setInfoBarGradientColor { - // Use grey gradient for the infobars. - NSColor* startingColor = - [NSColor colorWithCalibratedRed:kGreyTopColor[0] / 255.0 - green:kGreyTopColor[1] / 255.0 - blue:kGreyTopColor[2] / 255.0 - alpha:1.0]; - NSColor* endingColor = - [NSColor colorWithCalibratedRed:kGreyBottomColor[0] / 255.0 - green:kGreyBottomColor[1] / 255.0 - blue:kGreyBottomColor[2] / 255.0 - alpha:1.0]; + NSColor* startingColor = [NSColor colorWithCalibratedWhite:0.93 alpha:1.0]; + NSColor* endingColor = [NSColor colorWithCalibratedWhite:0.85 alpha:1.0]; NSGradient* translateInfoBarGradient = [[[NSGradient alloc] initWithStartingColor:startingColor endingColor:endingColor] autorelease]; [infoBarView_ setGradient:translateInfoBarGradient]; + [infoBarView_ + setStrokeColor:[NSColor colorWithCalibratedWhite:0.75 alpha:1.0]]; } - (void)removeOkCancelButtons { @@ -551,7 +540,8 @@ InfoBar* TranslateInfoBarDelegate::CreateInfoBar() { id previousControl = nil; for (NSUInteger i = 0; i < [visibleControls count]; ++i) { id control = [visibleControls objectAtIndex:i]; - if (previousControl && !VerifyControlOrderAndSpacing(previousControl, control)) { + if (previousControl && + !VerifyControlOrderAndSpacing(previousControl, control)) { NSString *title = @""; if ([control isKindOfClass:[NSPopUpButton class]]) { title = [[[control menu] itemAtIndex:0] title]; |