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

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

Issue 2473863004: Remove MaterialDesignController::IsModeMaterial (Closed)
Patch Set: pkasting review and rebase Created 4 years, 1 month 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 | « chrome/browser/themes/theme_service_unittest.cc ('k') | chrome/browser/ui/views/frame/browser_frame.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 21b954235a7935fc26ee6f2c581653c93b1b8944..43a95853c0cdedb8b2e6c9e67b0273926427f97e 100644
--- a/chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm
+++ b/chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm
@@ -39,8 +39,9 @@
}
- (void)setInfobarType:(infobars::InfoBarDelegate::Type)infobarType {
- SkColor topColor = infobars::InfoBar::GetTopColor(infobarType);
- SkColor bottomColor = infobars::InfoBar::GetBottomColor(infobarType);
+ // TODO(ellyjones): no need to use a gradient here.
+ SkColor topColor = infobars::InfoBar::GetBackgroundColor(infobarType);
+ SkColor bottomColor = topColor;
base::scoped_nsobject<NSGradient> gradient([[NSGradient alloc]
initWithStartingColor:skia::SkColorToCalibratedNSColor(topColor)
endingColor:skia::SkColorToCalibratedNSColor(bottomColor)]);
« no previous file with comments | « chrome/browser/themes/theme_service_unittest.cc ('k') | chrome/browser/ui/views/frame/browser_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698