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

Unified Diff: chrome/browser/ui/views/frame/glass_browser_frame_view.cc

Issue 1322323006: Change toolbar height for material design on Ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Peter's comments Created 5 years, 3 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/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,

Powered by Google App Engine
This is Rietveld 408576698