| Index: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm
|
| diff --git a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm
|
| index cd230fc9f45d901149c0c3a87dcee815c2d25903..48a30ef75872f3e03f2e297d33b845509481837a 100644
|
| --- a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm
|
| +++ b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm
|
| @@ -23,7 +23,6 @@
|
| namespace {
|
| const CGFloat kAnimationDuration = 0.2;
|
| const CGFloat kShadowInset = 3;
|
| -const CGFloat kShadowColor = 69 / 255.;
|
|
|
| }
|
|
|
| @@ -86,11 +85,12 @@ const CGFloat kShadowColor = 69 / 255.;
|
| // and non-Retina screens there would have to be logic to add and remove the
|
| // view. It's easier just to always add it for Incognito mode and draw
|
| // nothing into it.
|
| - if (![[self window] inIncognitoMode] || [self cr_lineWidth] < 1) {
|
| + if (![[self window] inIncognitoModeWithSystemTheme] ||
|
| + [self cr_lineWidth] < 1) {
|
| return;
|
| }
|
| [[AutocompleteTextField shadowColor] set];
|
| - NSRectFill(rect);
|
| + NSRectFillUsingOperation(rect, NSCompositeSourceOver);
|
| }
|
|
|
| @end
|
| @@ -104,7 +104,7 @@ const CGFloat kShadowColor = 69 / 255.;
|
| }
|
|
|
| + (NSColor*)shadowColor {
|
| - return [NSColor colorWithGenericGamma22White:kShadowColor alpha:1];
|
| + return [NSColor colorWithGenericGamma22White:0 alpha:0.14];
|
| }
|
|
|
| - (void)dealloc {
|
|
|