| 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_style.h" | 5 #include "ui/message_center/message_center_style.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 // Same as kNotificationWidth. | 14 // Same as kNotificationWidth. |
| 15 const int kNotificationPreferredImageSize = 360; | 15 const int kNotificationPreferredImageSize = 360; |
| 16 const float kNotificationPreferredImageRatio = 1.5; | 16 const float kNotificationPreferredImageRatio = 1.5; |
| 17 const int kSettingsIconSize = 16; | 17 const int kSettingsIconSize = 16; |
| 18 | 18 |
| 19 // Limits. | 19 // Limits. |
| 20 const size_t kMaxVisibleMessageCenterNotifications = 100; | 20 const size_t kMaxVisibleMessageCenterNotifications = 100; |
| 21 const size_t kMaxVisiblePopupNotifications = 3; | 21 const size_t kMaxVisiblePopupNotifications = 3; |
| 22 | 22 |
| 23 // Colors. |
| 24 const SkColor kMessageCenterBorderColor = SkColorSetRGB(0xC7, 0xCA, 0xCE); |
| 25 const SkColor kMessageCenterShadowColor = SkColorSetARGB(0.5 * 255, 0, 0, 0); |
| 26 |
| 23 // Within a notification /////////////////////////////////////////////////////// | 27 // Within a notification /////////////////////////////////////////////////////// |
| 24 | 28 |
| 25 // Pixel dimensions. | 29 // Pixel dimensions. |
| 26 const int kControlButtonSize = 29; | 30 const int kControlButtonSize = 29; |
| 27 const int kNotificationWidth = 360; | 31 const int kNotificationWidth = 360; |
| 28 const int kIconToTextPadding = 16; | 32 const int kIconToTextPadding = 16; |
| 29 const int kTextTopPadding = 12; | 33 const int kTextTopPadding = 12; |
| 30 | 34 |
| 31 // Text sizes. | 35 // Text sizes. |
| 32 const int kTitleFontSize = 14; | 36 const int kTitleFontSize = 14; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 76 |
| 73 // Colors. | 77 // Colors. |
| 74 const SkColor kBackgroundLightColor = SkColorSetRGB(0xf1, 0xf1, 0xf1); | 78 const SkColor kBackgroundLightColor = SkColorSetRGB(0xf1, 0xf1, 0xf1); |
| 75 const SkColor kBackgroundDarkColor = SkColorSetRGB(0xe7, 0xe7, 0xe7); | 79 const SkColor kBackgroundDarkColor = SkColorSetRGB(0xe7, 0xe7, 0xe7); |
| 76 const SkColor kShadowColor = SkColorSetARGB(0.3 * 255, 0, 0, 0); | 80 const SkColor kShadowColor = SkColorSetARGB(0.3 * 255, 0, 0, 0); |
| 77 const SkColor kMessageCenterBackgroundColor = SkColorSetRGB(0xee, 0xee, 0xee); | 81 const SkColor kMessageCenterBackgroundColor = SkColorSetRGB(0xee, 0xee, 0xee); |
| 78 const SkColor kFooterDelimiterColor = SkColorSetRGB(0xcc, 0xcc, 0xcc); | 82 const SkColor kFooterDelimiterColor = SkColorSetRGB(0xcc, 0xcc, 0xcc); |
| 79 const SkColor kFooterTextColor = SkColorSetRGB(0x7b, 0x7b, 0x7b); | 83 const SkColor kFooterTextColor = SkColorSetRGB(0x7b, 0x7b, 0x7b); |
| 80 | 84 |
| 81 } // namespace message_center | 85 } // namespace message_center |
| OLD | NEW |