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

Unified Diff: chrome/browser/ui/toolbar/toolbar_actions_bar.cc

Issue 1870333002: [Mac][Material Design] Change toolbar buttons to 24x24 from 28x28. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix conditional. Created 4 years, 8 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
« no previous file with comments | « chrome/browser/ui/layout_constants.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/toolbar/toolbar_actions_bar.cc
diff --git a/chrome/browser/ui/toolbar/toolbar_actions_bar.cc b/chrome/browser/ui/toolbar/toolbar_actions_bar.cc
index 546acd47f92fd9d1fdeb97a5689438e0ac188593..d7c564009808627984fd730f7ba05d3bb69ad891 100644
--- a/chrome/browser/ui/toolbar/toolbar_actions_bar.cc
+++ b/chrome/browser/ui/toolbar/toolbar_actions_bar.cc
@@ -45,8 +45,13 @@ enum DimensionType { WIDTH, HEIGHT };
// Returns the width or height of the toolbar action icon size.
int GetIconDimension(DimensionType type) {
- if (ui::MaterialDesignController::IsModeMaterial())
+if (ui::MaterialDesignController::IsModeMaterial())
+#if defined(OS_MACOSX)
+ // On the Mac, the spec is a 24x24 button in a 28x28 space.
+ return 24;
+#else
return 28;
+#endif
static bool initialized = false;
static int icon_height = 0;
« no previous file with comments | « chrome/browser/ui/layout_constants.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698