summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/autocomplete_text_field_cell.mm
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/cocoa/autocomplete_text_field_cell.mm')
-rw-r--r--chrome/browser/cocoa/autocomplete_text_field_cell.mm11
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/cocoa/autocomplete_text_field_cell.mm b/chrome/browser/cocoa/autocomplete_text_field_cell.mm
index e065c14..7125774 100644
--- a/chrome/browser/cocoa/autocomplete_text_field_cell.mm
+++ b/chrome/browser/cocoa/autocomplete_text_field_cell.mm
@@ -245,17 +245,18 @@ const NSInteger kBaselineOffset = 4;
NSMinX(textFrame) - x,
cellFrame.size.height - 2 * kKeywordYInset));
- // Draw the token rectangle with rounded corners.
+ // Draw a token rectangle with rounded corners.
NSRect frame(NSInsetRect(infoFrame, 0.5, 0.5));
NSBezierPath* path =
[NSBezierPath bezierPathWithRoundedRect:frame xRadius:4.0 yRadius:4.0];
- // Matches the color of the highlighted line in the popup.
- [[NSColor selectedControlColor] set];
+ [[NSColor controlColor] set];
[path fill];
- // Border around token rectangle, match focus ring's inner color.
- [[[NSColor keyboardFocusIndicatorColor] colorWithAlphaComponent:0.5] set];
+ GTMTheme *theme = [controlView gtm_theme];
+ NSColor* stroke = [theme strokeColorForStyle:GTMThemeStyleToolBarButton
+ state:YES];
+ [stroke setStroke];
[path setLineWidth:1.0];
[path stroke];