OLD | NEW |
| (Empty) |
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. | |
4 | |
5 #ifndef ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_ | |
6 #define ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_ | |
7 | |
8 #include "ash/ash_export.h" | |
9 | |
10 typedef unsigned int SkColor; | |
11 | |
12 namespace ash { | |
13 | |
14 extern const int kPaddingFromRightEdgeOfScreenBottomAlignment; | |
15 extern const int kPaddingFromBottomOfScreenBottomAlignment; | |
16 extern const int kPaddingFromOuterEdgeOfLauncherVerticalAlignment; | |
17 extern const int kPaddingFromInnerEdgeOfLauncherVerticalAlignment; | |
18 extern const int kPaddingFromBottomOfScreenVerticalAlignment; | |
19 | |
20 extern const int kBubblePaddingHorizontalBottom; | |
21 extern const int kBubblePaddingHorizontalSide; | |
22 extern const int kBubblePaddingVerticalBottom; | |
23 extern const int kBubblePaddingVerticalSide; | |
24 | |
25 extern const int kTrayBubbleAnchorTopInsetBottomAnchor; | |
26 | |
27 extern const int kTrayImageItemHorizontalPaddingVerticalAlignment; | |
28 | |
29 ASH_EXPORT extern const int kTrayItemSize; | |
30 | |
31 // Extra padding used beside a single icon in the tray area of the shelf. | |
32 extern const int kTrayImageItemPadding; | |
33 | |
34 extern const int kTrayLabelItemHorizontalPaddingBottomAlignment; | |
35 extern const int kTrayLabelItemVerticalPaddingVerticalAlignment; | |
36 | |
37 extern const int kTrayMenuBottomRowPadding; | |
38 extern const int kTrayMenuBottomRowPaddingBetweenItems; | |
39 | |
40 // The minimum width of the tray menu. | |
41 extern const int kTrayMenuMinimumWidth; | |
42 extern const int kTrayMenuMinimumWidthMd; | |
43 | |
44 extern const int kTrayPopupAutoCloseDelayInSeconds; | |
45 extern const int kTrayPopupAutoCloseDelayForTextInSeconds; | |
46 extern const int kTrayPopupPaddingHorizontal; | |
47 extern const int kTrayPopupPaddingBetweenItems; | |
48 extern const int kTrayPopupButtonEndMargin; | |
49 // The padding used on the left and right of labels. This applies to all labels | |
50 // in the system menu. | |
51 extern const int kTrayPopupLabelHorizontalPadding; | |
52 | |
53 // The minimum/default height of the rows in the system tray menu. | |
54 extern const int kTrayPopupItemMinHeight; | |
55 | |
56 // The width used for the first region of the row (which holds an image). | |
57 extern const int kTrayPopupItemMinStartWidth; | |
58 | |
59 // The width used for the end region of the row (usually a more arrow). | |
60 extern const int kTrayPopupItemMinEndWidth; | |
61 | |
62 // When transitioning between a detailed and a default view, this delay is used | |
63 // before the transition starts. | |
64 ASH_EXPORT extern const int kTrayDetailedViewTransitionDelayMs; | |
65 | |
66 // Padding used on right side of labels to keep minimum distance to the next | |
67 // item. This applies to all labels in the system menu. | |
68 extern const int kTrayPopupLabelRightPadding; | |
69 | |
70 extern const int kTrayPopupDetailsIconWidth; | |
71 extern const int kTrayPopupDetailsLabelExtraLeftMargin; | |
72 extern const SkColor kTrayPopupHoverBackgroundColor; | |
73 extern const int kTrayPopupScrollSeparatorHeight; | |
74 extern const int kTrayRoundedBorderRadius; | |
75 | |
76 // The width of ToggleButton views including any border padding. | |
77 extern const int kTrayToggleButtonWidth; | |
78 | |
79 extern const SkColor kBackgroundColor; | |
80 extern const SkColor kHoverBackgroundColor; | |
81 extern const SkColor kPublicAccountUserCardTextColor; | |
82 extern const SkColor kPublicAccountUserCardNameColor; | |
83 | |
84 extern const SkColor kHeaderBackgroundColor; | |
85 | |
86 extern const SkColor kBorderDarkColor; | |
87 extern const SkColor kBorderLightColor; | |
88 extern const SkColor kButtonStrokeColor; | |
89 | |
90 extern const SkColor kHeaderTextColorNormal; | |
91 extern const SkColor kHeaderTextColorHover; | |
92 | |
93 extern const int kTrayPopupMinWidth; | |
94 extern const int kTrayPopupMaxWidth; | |
95 extern const int kNotificationIconWidth; | |
96 extern const int kNotificationButtonWidth; | |
97 extern const int kTrayNotificationContentsWidth; | |
98 | |
99 // Extra padding used to adjust hitting region around tray items. | |
100 extern const int kHitRegionPadding; | |
101 | |
102 // Width of a line used to separate tray items in the shelf. | |
103 ASH_EXPORT extern const int kSeparatorWidth; | |
104 | |
105 // The color of the separators used in the system menu. | |
106 extern const SkColor kMenuSeparatorColor; | |
107 | |
108 // The size and foreground color of the icons appearing in the material design | |
109 // system tray. | |
110 extern const int kTrayIconSize; | |
111 extern const SkColor kTrayIconColor; | |
112 | |
113 // The total visual padding at the start and end of the icon/label section | |
114 // of the tray. | |
115 extern const int kTrayEdgePadding; | |
116 | |
117 // The size and foreground color of the icons appearing in the material design | |
118 // system menu. | |
119 extern const int kMenuIconSize; | |
120 extern const SkColor kMenuIconColor; | |
121 extern const SkColor kMenuIconColorDisabled; | |
122 // The size of buttons in the system menu. | |
123 ASH_EXPORT extern const int kMenuButtonSize; | |
124 // The vertical padding for the system menu separator. | |
125 extern const int kMenuSeparatorVerticalPadding; | |
126 // The horizontal padding for the system menu separator. | |
127 extern const int kMenuExtraMarginFromLeftEdge; | |
128 // The visual padding to the left of icons in the system menu. | |
129 extern const int kMenuEdgeEffectivePadding; | |
130 | |
131 // The base color used for all ink drops in the system menu. | |
132 extern const SkColor kTrayPopupInkDropBaseColor; | |
133 | |
134 // The opacity of the ink drop ripples for all ink drops in the system menu. | |
135 extern const float kTrayPopupInkDropRippleOpacity; | |
136 | |
137 // The opacity of the ink drop ripples for all ink highlights in the system | |
138 // menu. | |
139 extern const float kTrayPopupInkDropHighlightOpacity; | |
140 | |
141 // The inset applied to clickable surfaces in the system menu that do not have | |
142 // the ink drop filling the entire bounds. | |
143 extern const int kTrayPopupInkDropInset; | |
144 | |
145 // The radius used to draw the corners of the rounded rect style ink drops. | |
146 extern const int kTrayPopupInkDropCornerRadius; | |
147 | |
148 // The height of the system info row. | |
149 extern const int kTrayPopupSystemInfoRowHeight; | |
150 | |
151 namespace test { | |
152 const int kSettingsTrayItemViewId = 10000; | |
153 const int kAccessibilityTrayItemViewId = 10001; | |
154 } // namespace test | |
155 | |
156 } // namespace ash | |
157 | |
158 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_CONSTANTS_H_ | |
OLD | NEW |