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

Unified Diff: chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm

Issue 1950703002: [Mac][Material Design] Update toolbar bottom border color. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code cleanup. 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/infobars/infobar_gradient_view.mm
diff --git a/chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm b/chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm
index f00e1d46082c548b4d6379a102486160a1e06e74..4bf8cb26542e46ac4503bf78b12d0c09f23f066e 100644
--- a/chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm
+++ b/chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm
@@ -52,10 +52,14 @@
if (!themeProvider)
return [NSColor blackColor];
- BOOL active = [[self window] isMainWindow];
+ if (!ui::MaterialDesignController::IsModeMaterial()) {
+ BOOL active = [[self window] isMainWindow];
+ return themeProvider->GetNSColor(
+ active ? ThemeProperties::COLOR_TOOLBAR_STROKE :
+ ThemeProperties::COLOR_TOOLBAR_STROKE_INACTIVE);
+ }
return themeProvider->GetNSColor(
- active ? ThemeProperties::COLOR_TOOLBAR_STROKE :
- ThemeProperties::COLOR_TOOLBAR_STROKE_INACTIVE);
+ ThemeProperties::COLOR_DETACHED_BOOKMARK_BAR_SEPARATOR);
}
- (void)drawRect:(NSRect)rect {
« no previous file with comments | « chrome/browser/ui/cocoa/download/download_shelf_view_cocoa.mm ('k') | chrome/browser/ui/cocoa/toolbar/toolbar_view_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698