diff options
author | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-04 18:25:09 +0000 |
---|---|---|
committer | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-04 18:25:09 +0000 |
commit | 7e76a808066e176130092393f8e509abfcbc181b (patch) | |
tree | 692a0558620aee36c2e8006deb477d89809ce895 /chrome | |
parent | edc1d56232dfc2a7fca2167cf59df8bc75b419ee (diff) | |
download | chromium_src-7e76a808066e176130092393f8e509abfcbc181b.zip chromium_src-7e76a808066e176130092393f8e509abfcbc181b.tar.gz chromium_src-7e76a808066e176130092393f8e509abfcbc181b.tar.bz2 |
[Mac] Fix Omnibox keyword-search color.
Originally was using theme colors, which seem to have changed.
http://crbug.com/20556
TEST=Type www.google.com and hit tab, should see "Search Google:" in a
bubble. The bubble should be blue with a darker background.
Review URL: http://codereview.chromium.org/175055
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25478 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/cocoa/autocomplete_text_field_cell.mm | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/chrome/browser/cocoa/autocomplete_text_field_cell.mm b/chrome/browser/cocoa/autocomplete_text_field_cell.mm index 7125774..e065c14 100644 --- a/chrome/browser/cocoa/autocomplete_text_field_cell.mm +++ b/chrome/browser/cocoa/autocomplete_text_field_cell.mm @@ -245,18 +245,17 @@ const NSInteger kBaselineOffset = 4; NSMinX(textFrame) - x, cellFrame.size.height - 2 * kKeywordYInset)); - // Draw a token rectangle with rounded corners. + // Draw the token rectangle with rounded corners. NSRect frame(NSInsetRect(infoFrame, 0.5, 0.5)); NSBezierPath* path = [NSBezierPath bezierPathWithRoundedRect:frame xRadius:4.0 yRadius:4.0]; - [[NSColor controlColor] set]; + // Matches the color of the highlighted line in the popup. + [[NSColor selectedControlColor] set]; [path fill]; - GTMTheme *theme = [controlView gtm_theme]; - NSColor* stroke = [theme strokeColorForStyle:GTMThemeStyleToolBarButton - state:YES]; - [stroke setStroke]; + // Border around token rectangle, match focus ring's inner color. + [[[NSColor keyboardFocusIndicatorColor] colorWithAlphaComponent:0.5] set]; [path setLineWidth:1.0]; [path stroke]; |