OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/message_center/message_center_constants.h" | 5 #include "ui/message_center/message_center_constants.h" |
6 | 6 |
7 namespace message_center { | 7 namespace message_center { |
8 | 8 |
9 // Exported values ///////////////////////////////////////////////////////////// | 9 // Exported values ///////////////////////////////////////////////////////////// |
10 | 10 |
11 // Square image sizes in pixels. | 11 // Square image sizes in pixels. |
12 const int kNotificationButtonIconSize = 16; | 12 const int kNotificationButtonIconSize = 16; |
13 const int kNotificationIconSize = 80; | 13 const int kNotificationIconSize = 80; |
14 const int kNotificationPreferredImageSize = kNotificationWidth; | 14 const int kNotificationPreferredImageSize = kNotificationWidth; |
15 const int kSettingsIconSize = 16; | 15 const int kSettingsIconSize = 16; |
16 | 16 |
17 // Within a notification /////////////////////////////////////////////////////// | 17 // Within a notification /////////////////////////////////////////////////////// |
18 | 18 |
19 // Pixel dimensions. | 19 // Pixel dimensions. |
20 const int kControlButtonSize = 29; | 20 const int kControlButtonSize = 29; |
21 const int kNotificationWidth = 360; | 21 const int kNotificationWidth = 360; |
22 const int kIconToTextPadding = 16; | 22 const int kIconToTextPadding = 16; |
23 const int kTextTopPadding = 12; | 23 const int kTextTopPadding = 12; |
24 | 24 |
25 // Text sizes. | 25 // Text sizes. |
26 const int kTitleFontSize = 14; | 26 const int kTitleFontSize = 14; |
27 const int kMessageFontSize = 12; | 27 const int kMessageFontSize = 12; |
| 28 const int kMessageLineHeight = 18; |
28 | 29 |
29 // Colors. | 30 // Colors. |
30 const SkColor kNotificationBackgroundColor = SkColorSetRGB(255, 255, 255); | 31 const SkColor kNotificationBackgroundColor = SkColorSetRGB(255, 255, 255); |
31 const SkColor kLegacyIconBackgroundColor = SkColorSetRGB(230, 230, 230); | 32 const SkColor kLegacyIconBackgroundColor = SkColorSetRGB(230, 230, 230); |
32 const SkColor kRegularTextColor = SkColorSetRGB(51, 51, 51); | 33 const SkColor kRegularTextColor = SkColorSetRGB(51, 51, 51); |
33 const SkColor kFocusBorderColor = SkColorSetRGB(64, 128, 250); | 34 const SkColor kFocusBorderColor = SkColorSetRGB(64, 128, 250); |
34 | 35 |
35 // Limits. | 36 // Limits. |
36 const int kNotificationMaximumImageHeight = kNotificationWidth; | 37 const int kNotificationMaximumImageHeight = kNotificationWidth; |
37 const size_t kNotificationMaximumItems = 8; | 38 const size_t kNotificationMaximumItems = 8; |
38 | 39 |
39 // Timing. | 40 // Timing. |
40 const int kAutocloseDefaultDelaySeconds = 8; | 41 const int kAutocloseDefaultDelaySeconds = 8; |
41 const int kAutocloseHighPriorityDelaySeconds = 25; | 42 const int kAutocloseHighPriorityDelaySeconds = 25; |
42 | 43 |
43 // Around notifications //////////////////////////////////////////////////////// | 44 // Around notifications //////////////////////////////////////////////////////// |
44 | 45 |
45 // Pixel dimensions. | 46 // Pixel dimensions. |
46 const int kMarginBetweenItems = 10; | 47 const int kMarginBetweenItems = 10; |
47 | 48 |
48 // Colors. | 49 // Colors. |
49 const SkColor kBackgroundLightColor = SkColorSetRGB(0xf1, 0xf1, 0xf1); | 50 const SkColor kBackgroundLightColor = SkColorSetRGB(0xf1, 0xf1, 0xf1); |
50 const SkColor kBackgroundDarkColor = SkColorSetRGB(0xe7, 0xe7, 0xe7); | 51 const SkColor kBackgroundDarkColor = SkColorSetRGB(0xe7, 0xe7, 0xe7); |
51 | 52 |
52 } // namespace message_center | 53 } // namespace message_center |
OLD | NEW |