Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Unified Diff: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm

Issue 1990413003: [Mac][Material Design] Adjust Omnibox focus ring color for Incognito mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2a0e7da4f0a41475947a6de4839279db5a3de3cb..9a7f19458c6e251b0a40e57056834e745b385678 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
@@ -421,10 +421,15 @@ size_t CalculatePositionsInFrame(
CGFloat alphaComponent = 0.5 / singlePixelLineWidth_;
if (isModeMaterial && inDarkMode) {
- alphaComponent = 1;
+ // Special focus color for Material Incognito.
+ [[NSColor colorWithSRGBRed:123 / 255.
+ green:170 / 255.
+ blue:247 / 255.
+ alpha:1] set];
+ } else {
+ [[[NSColor keyboardFocusIndicatorColor]
+ colorWithAlphaComponent:alphaComponent] set];
}
- [[[NSColor keyboardFocusIndicatorColor]
- colorWithAlphaComponent:alphaComponent] set];
[path stroke];
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698