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

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: 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 6069dc2dd7a3380f5889565f152f635aec918ee5..ef69feed57ed5d0232a82a3dbbb3b41995279c43 100644
--- a/chrome/browser/themes/theme_properties.cc
+++ b/chrome/browser/themes/theme_properties.cc
@@ -171,8 +171,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 bottom and top vertical padding of the toolbar.
+const int kToolbarViewBottomVerticalPadding[] = {5, 5, 5};
+const int kToolbarViewTopVerticalPadding[] = {5, 4, 4};
// ----------------------------------------------------------------------------
@@ -435,8 +436,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_BOTTOM_VERTICAL_PADDING:
+ return kToolbarViewBottomVerticalPadding[mode];
+ case ThemeProperties::PROPERTY_TOOLBAR_VIEW_TOP_VERTICAL_PADDING:
+ return kToolbarViewTopVerticalPadding[mode];
default:
return -1;
}

Powered by Google App Engine
This is Rietveld 408576698