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

Unified Diff: ash/common/system/tray/tray_constants.cc

Issue 2390003002: [Chrome OS MD] Update spacing between material design icons in the system tray (Closed)
Patch Set: Created 4 years, 2 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: ash/common/system/tray/tray_constants.cc
diff --git a/ash/common/system/tray/tray_constants.cc b/ash/common/system/tray/tray_constants.cc
index 77864d4b66ad35174fa89ebbf03aacdd69874c59..005ef3f65f78d19218ac8e6f02a05dfd1c476ced 100644
--- a/ash/common/system/tray/tray_constants.cc
+++ b/ash/common/system/tray/tray_constants.cc
@@ -26,9 +26,7 @@ const int kBubblePaddingVerticalSide = 15;
// Top inset of system tray bubble for bottom anchor alignment.
const int kTrayBubbleAnchorTopInsetBottomAnchor = 3;
-const int kTrayImageItemHorizontalPaddingBottomAlignment = 1;
const int kTrayImageItemHorizontalPaddingVerticalAlignment = 1;
-const int kTrayImageItemVerticalPaddingVerticalAlignment = 1;
// Size of tray items on the primary axis.
const int kTrayItemSize = 32;
@@ -98,6 +96,7 @@ int GetTrayConstant(TrayConstant constant) {
const int kTrayPopupItemHeight[] = {46, 46, 48};
const int kVirtualKeyboardButtonSize[] = {39, 39, kTrayItemSize};
const int kTrayImeMenuIcon[] = {40, 40, kTrayItemSize};
+ const int kTrayImageItemPadding[] = {1, 1, 3};
const int mode = MaterialDesignController::GetMode();
DCHECK(mode >= MaterialDesignController::NON_MATERIAL &&
@@ -116,6 +115,8 @@ int GetTrayConstant(TrayConstant constant) {
return kVirtualKeyboardButtonSize[mode];
case TRAY_IME_MENU_ICON:
return kTrayImeMenuIcon[mode];
+ case TRAY_IMAGE_ITEM_PADDING:
+ return kTrayImageItemPadding[mode];
}
NOTREACHED();
return 0;

Powered by Google App Engine
This is Rietveld 408576698