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

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

Issue 2013183003: [Mac][Material Design] Bring Omnibox stroke and MD colors up to spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile error. 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
Index: chrome/browser/ui/cocoa/location_bar/selected_keyword_decoration.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/selected_keyword_decoration.mm b/chrome/browser/ui/cocoa/location_bar/selected_keyword_decoration.mm
index 2e34a4d5517a027113f95271410ea9847d011805..b6bf09f0121b2d7784fdc51b08968a22c92adb18 100644
--- a/chrome/browser/ui/cocoa/location_bar/selected_keyword_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/selected_keyword_decoration.mm
@@ -35,7 +35,10 @@ SelectedKeywordDecoration::SelectedKeywordDecoration() {
SelectedKeywordDecoration::~SelectedKeywordDecoration() {}
NSColor* SelectedKeywordDecoration::GetBackgroundBorderColor() {
- return skia::SkColorToCalibratedNSColor(gfx::kGoogleBlue700);
+ if (!ui::MaterialDesignController::IsModeMaterial()) {
+ return skia::SkColorToCalibratedNSColor(gfx::kGoogleBlue700);
+ }
+ return skia::SkColorToSRGBNSColor(gfx::kGoogleBlue700);
}
CGFloat SelectedKeywordDecoration::GetWidthForSpace(CGFloat width) {
« no previous file with comments | « chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm ('k') | chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698