| Index: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm
|
| diff --git a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm
|
| index b75fcf4bc1216b7c801c41cef3b125a82e507aec..ca33657b14d0dff8605484b03c4dbdfc727d9b95 100644
|
| --- a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm
|
| +++ b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm
|
| @@ -314,6 +314,10 @@
|
|
|
| // Compute the border's bezier path.
|
| NSRect pathRect = NSInsetRect(frame, insetSize, insetSize);
|
| + // In dark mode, make room for a shadow beneath the bottom edge.
|
| + if (inDarkMode && isModeMaterial) {
|
| + pathRect.size.height -= singlePixelLineWidth_;
|
| + }
|
| NSBezierPath* path =
|
| [NSBezierPath bezierPathWithRoundedRect:pathRect
|
| xRadius:kCornerRadius
|
| @@ -362,7 +366,7 @@
|
| }
|
|
|
| // Draw a highlight beneath the top edge, and a shadow beneath the bottom
|
| - // edge when on a Retina screen.
|
| + // edge.
|
| {
|
| gfx::ScopedNSGraphicsContextSaveGState saveState;
|
| [NSBezierPath setDefaultLineWidth:singlePixelLineWidth_];
|
| @@ -376,12 +380,10 @@
|
| [NSBezierPath strokeLineFromPoint:origin
|
| toPoint:destination];
|
|
|
| - if (singlePixelLineWidth_ < 1) {
|
| - origin.y = destination.y = NSMaxY(pathRect) + singlePixelLineWidth_;
|
| - [[AutocompleteTextField shadowColor] set];
|
| - [NSBezierPath strokeLineFromPoint:origin
|
| - toPoint:destination];
|
| - }
|
| + origin.y = destination.y = NSMaxY(pathRect) + singlePixelLineWidth_;
|
| + [[NSColor colorWithCalibratedWhite:69 / 255. alpha:1] set];
|
| + [NSBezierPath strokeLineFromPoint:origin
|
| + toPoint:destination];
|
| }
|
| }
|
| } else {
|
|
|