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

Unified Diff: chrome/browser/themes/theme_properties.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/themes/theme_properties.cc
diff --git a/chrome/browser/themes/theme_properties.cc b/chrome/browser/themes/theme_properties.cc
index c2c45afc7c55b9071a5129dc72e3efb36aa939ae..e0e139d3064d667a4dca49298e9835e9e9b1c4f2 100644
--- a/chrome/browser/themes/theme_properties.cc
+++ b/chrome/browser/themes/theme_properties.cc
@@ -172,8 +172,9 @@ const int kToolbarViewRightEdgeSpacing[] = {2, 4, 8};
// The horizontal space between most items.
const int kToolbarViewStandardSpacing[] = {3, 4, 8};
-// The minimal vertical padding of the toolbar.
-const int kToolbarViewVerticalPadding[] = {5, 4, 4};
+// The minimum top and bottom vertical padding of the toolbar.
+const int kToolbarViewTopVerticalPadding[] = {5, 4, 4};
+const int kToolbarViewBottomVerticalPadding[] = {5, 5, 5};
// ----------------------------------------------------------------------------
@@ -436,8 +437,10 @@ int ThemeProperties::GetDefaultDisplayProperty(int id) {
return kToolbarViewRightEdgeSpacing[mode];
case ThemeProperties::PROPERTY_TOOLBAR_VIEW_STANDARD_SPACING:
return kToolbarViewStandardSpacing[mode];
- case ThemeProperties::PROPERTY_TOOLBAR_VIEW_VERTICAL_PADDING:
- return kToolbarViewVerticalPadding[mode];
+ case ThemeProperties::PROPERTY_TOOLBAR_VIEW_TOP_VERTICAL_PADDING:
+ return kToolbarViewTopVerticalPadding[mode];
+ case ThemeProperties::PROPERTY_TOOLBAR_VIEW_BOTTOM_VERTICAL_PADDING:
+ return kToolbarViewBottomVerticalPadding[mode];
default:
return -1;
}

Powered by Google App Engine
This is Rietveld 408576698