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

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

Issue 2147143002: [Chrome OS MD] Draw a 1px separator between 2 tray items (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 5 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 2638cfe55bcda3f5c1a6dbcb0604b6539de15031..87c95c1ae58f51c5c86196f7d1c76dc36c327112 100644
--- a/ash/common/system/tray/tray_constants.cc
+++ b/ash/common/system/tray/tray_constants.cc
@@ -84,10 +84,14 @@ const SkColor kTrayIconColor = SK_ColorWHITE;
const int kMenuIconSize = 20;
const SkColor kMenuIconColor = SkColorSetRGB(0x5A, 0x5A, 0x5A);
+const int kHitRegionPadding = 4;
+const SkColor kSeparatorColor = SkColorSetA(SK_ColorWHITE, 0x29);
varkha 2016/07/14 21:34:48 Opacity seems quite low (16%?) so it is barely vis
yiyix 2016/07/26 20:27:31 The spec is changed to 0.24 instead. ref: https://
+const int kSeparatorWidth = 1;
+
int GetTrayConstant(TrayConstant constant) {
const int kTrayItemHeightLegacy[] = {38, 38, kTrayItemSize};
- const int kTraySpacing[] = {4, 4, 8};
- const int kTrayPaddingFromEdgeOfShelf[] = {3, 3, 8};
+ const int kTraySpacing[] = {4, 4, 0};
+ const int kTrayPaddingFromEdgeOfShelf[] = {3, 3, 4};
const int kVirtualKeyboardButtonSize[] = {39, 39, kTrayItemSize};
const int mode = MaterialDesignController::GetMode();

Powered by Google App Engine
This is Rietveld 408576698