Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / ash / system / tray / tray_constants.cc
blob7bfa0f3a5d4381ba92ab0f04a115bdddc47e58b8
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ash/system/tray/tray_constants.h"
7 #include "ash/ash_switches.h"
8 #include "third_party/skia/include/core/SkColor.h"
10 namespace ash {
12 const int kPaddingFromRightEdgeOfScreenBottomAlignment = 7;
13 const int kPaddingFromBottomOfScreenBottomAlignment = 7;
14 const int kPaddingFromOuterEdgeOfLauncherVerticalAlignment = 8;
15 const int kPaddingFromInnerEdgeOfLauncherVerticalAlignment = 9;
16 const int kPaddingFromBottomOfScreenVerticalAlignment = 10;
18 // Padding used to position the system menu relative to the status area.
19 const int kBubblePaddingHorizontalBottom = 6;
20 const int kBubblePaddingHorizontalSide = 10;
21 const int kBubblePaddingVerticalBottom = 3;
22 const int kBubblePaddingVerticalSide = 15;
24 const int kPaddingFromEdgeOfShelf = 3;
26 // Top inset of system tray bubble for bottom anchor alignment.
27 const int kTrayBubbleAnchorTopInsetBottomAnchor = 3;
29 const int kTrayImageItemHorizontalPaddingBottomAlignment = 1;
30 const int kTrayImageItemHorizontalPaddingVerticalAlignment = 1;
31 const int kTrayImageItemVerticalPaddingVerticalAlignment = 1;
33 // Size of tray items on the primary axis.
34 const int kTrayItemSize = 32;
36 const int kTrayLabelItemHorizontalPaddingBottomAlignment = 7;
38 // Vertical padding between status tray items when the shelf is vertical.
39 const int kTrayLabelItemVerticalPaddingVerticalAlignment = 4;
41 const int kTrayMenuBottomRowPadding = 5;
42 const int kTrayMenuBottomRowPaddingBetweenItems = -1;
44 const int kTrayPopupAutoCloseDelayInSeconds = 2;
45 const int kTrayPopupAutoCloseDelayForTextInSeconds = 5;
46 const int kTrayPopupPaddingHorizontal = 18;
47 const int kTrayPopupPaddingBetweenItems = 10;
48 const int kTrayPopupTextSpacingVertical = 4;
49 const int kTrayPopupUserCardVerticalPadding = 10;
51 const int kTrayPopupDetailsIconWidth = 25;
52 const int kTrayPopupDetailsLabelExtraLeftMargin = 8;
53 const int kTrayPopupScrollSeparatorHeight = 15;
54 const int kTrayRoundedBorderRadius = 2;
55 const int kTrayBarButtonWidth = 39;
57 const SkColor kBackgroundColor = SkColorSetRGB(0xfe, 0xfe, 0xfe);
58 const SkColor kHoverBackgroundColor = SkColorSetRGB(0xf3, 0xf3, 0xf3);
59 const SkColor kPublicAccountBackgroundColor = SkColorSetRGB(0xf8, 0xe5, 0xb6);
60 const SkColor kPublicAccountUserCardTextColor = SkColorSetRGB(0x66, 0x66, 0x66);
61 const SkColor kPublicAccountUserCardNameColor = SK_ColorBLACK;
63 const SkColor kHeaderBackgroundColor = SkColorSetRGB(0xf5, 0xf5, 0xf5);
65 const SkColor kBorderDarkColor = SkColorSetRGB(0xaa, 0xaa, 0xaa);
66 const SkColor kBorderLightColor = SkColorSetRGB(0xeb, 0xeb, 0xeb);
67 const SkColor kButtonStrokeColor = SkColorSetRGB(0xdd, 0xdd, 0xdd);
69 const SkColor kHeaderTextColorNormal = SkColorSetARGB(0x7f, 0, 0, 0);
70 const SkColor kHeaderTextColorHover = SkColorSetARGB(0xd3, 0, 0, 0);
72 const int kTrayPopupMinWidth = 300;
73 const int kTrayPopupMaxWidth = 500;
74 const int kNotificationIconWidth = 40;
75 const int kNotificationButtonWidth = 32;
76 const int kTrayNotificationContentsWidth = kTrayPopupMinWidth -
77 (kNotificationIconWidth + kNotificationButtonWidth +
78 (kTrayPopupPaddingHorizontal / 2) * 3);
80 const int kTrayAvatarCornerRadius = 2;
81 const int kTrayAvatarSize = 32;
83 const int kTraySpacing = 4;
84 const int kShelfItemHeight = 38;
86 } // namespace ash