| Index: chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm
|
| diff --git a/chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm b/chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm
|
| index cdea965d56e39fda08c72b0b0b9357250576ccfe..5c4886845078d92b58ad400640b2ad40894fa62a 100644
|
| --- a/chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm
|
| +++ b/chrome/browser/ui/cocoa/location_bar/bubble_decoration.mm
|
| @@ -79,6 +79,10 @@ NSRect BubbleDecoration::GetImageRectInFrame(NSRect frame) {
|
| return imageRect;
|
| }
|
|
|
| +NSColor* BubbleDecoration::GetDarkModeTextColor() {
|
| + return skia::SkColorToSRGBNSColor(kMaterialDarkModeTextColor);
|
| +}
|
| +
|
| CGFloat BubbleDecoration::GetWidthForSpace(CGFloat width) {
|
| const CGFloat all_width = GetWidthForImageAndLabel(image_, label_);
|
| if (all_width <= width)
|
| @@ -124,9 +128,7 @@ void BubbleDecoration::DrawInFrame(NSRect frame, NSView* control_view) {
|
| [line stroke];
|
|
|
| NSColor* text_color =
|
| - in_dark_mode
|
| - ? skia::SkColorToSRGBNSColor(kMaterialDarkModeTextColor)
|
| - : GetBackgroundBorderColor();
|
| + in_dark_mode ? GetDarkModeTextColor() : GetBackgroundBorderColor();
|
| SetTextColor(text_color);
|
| }
|
|
|
|
|