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

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

Issue 1938243002: [Mac][Material Design] Correct location bar editing text colors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase from ToT. Created 4 years, 8 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 | chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm » ('j') | 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_editor.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm
index 8a7128fed4f8e6b62dd7b08d0c1332e514305705..f76f2a3cb87f523be1f48f6904b3c29cf7cdfd52 100644
--- a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm
+++ b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.mm
@@ -84,10 +84,9 @@ BOOL ThePasteboardIsTooDamnBig() {
}
bool inDarkMode = [[self window] inIncognitoModeWithSystemTheme];
- // Draw a light insertion point for MD Incognito.
+ // Draw a white insertion point for MD Incognito.
NSColor* insertionPointColor =
- inDarkMode ? [NSColor colorWithCalibratedWhite:1 alpha:0.75]
- : [NSColor blackColor];
+ inDarkMode ? [NSColor whiteColor] : [NSColor blackColor];
[self setInsertionPointColor:insertionPointColor];
NSColor* textSelectionColor = [NSColor selectedTextBackgroundColor];
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698