Index: chrome/browser/ui/views/frame/glass_browser_frame_view.cc |
diff --git a/chrome/browser/ui/views/frame/glass_browser_frame_view.cc b/chrome/browser/ui/views/frame/glass_browser_frame_view.cc |
index ae8d6f72541850731250e92616c24432e7ada3a4..596ce549bfbed36b9bf998fa41252536432f8764 100644 |
--- a/chrome/browser/ui/views/frame/glass_browser_frame_view.cc |
+++ b/chrome/browser/ui/views/frame/glass_browser_frame_view.cc |
@@ -360,9 +360,11 @@ void GlassBrowserFrameView::PaintToolbarBackground(gfx::Canvas* canvas) { |
int x = toolbar_bounds.x(); |
int w = toolbar_bounds.width(); |
+ const bool mode_material = ui::MaterialDesignController::IsModeMaterial(); |
Peter Kasting
2015/09/09 22:41:53
When I asked for the opaque and glass frames to be
tdanderson
2015/09/10 19:48:25
Reverted these changes for now, though I'd like to
|
+ |
gfx::ImageSkia* theme_toolbar = tp->GetImageSkiaNamed(IDR_THEME_TOOLBAR); |
gfx::ImageSkia* toolbar_center = tp->GetImageSkiaNamed( |
- IDR_CONTENT_TOP_CENTER); |
+ mode_material ? IDR_THEME_TOOLBAR : IDR_CONTENT_TOP_CENTER); |
// Tile the toolbar image starting at the frame edge on the left and where |
// the tabstrip is on the top. |
@@ -419,7 +421,7 @@ void GlassBrowserFrameView::PaintToolbarBackground(gfx::Canvas* canvas) { |
} |
// Draw the content/toolbar separator. |
- if (ui::MaterialDesignController::IsModeMaterial()) { |
+ if (mode_material) { |
toolbar_bounds.Inset(kClientEdgeThickness, 0); |
BrowserView::Paint1pxHorizontalLine( |
canvas, |