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 |
(...skipping 19 matching lines...) Expand all Loading... |
30 // Text sizes. | 30 // Text sizes. |
31 const int kTitleFontSize = 14; | 31 const int kTitleFontSize = 14; |
32 const int kTitleLineHeight = 20; | 32 const int kTitleLineHeight = 20; |
33 const int kMessageFontSize = 12; | 33 const int kMessageFontSize = 12; |
34 const int kMessageLineHeight = 18; | 34 const int kMessageLineHeight = 18; |
35 | 35 |
36 // Colors. | 36 // Colors. |
37 const SkColor kNotificationBackgroundColor = SkColorSetRGB(255, 255, 255); | 37 const SkColor kNotificationBackgroundColor = SkColorSetRGB(255, 255, 255); |
38 const SkColor kLegacyIconBackgroundColor = SkColorSetRGB(0xf5, 0xf5, 0xf5); | 38 const SkColor kLegacyIconBackgroundColor = SkColorSetRGB(0xf5, 0xf5, 0xf5); |
39 const SkColor kRegularTextColor = SkColorSetRGB(34, 34, 34); | 39 const SkColor kRegularTextColor = SkColorSetRGB(34, 34, 34); |
| 40 const SkColor kDimTextColor = SkColorSetRGB(102, 102, 102); |
40 const SkColor kFocusBorderColor = SkColorSetRGB(64, 128, 250); | 41 const SkColor kFocusBorderColor = SkColorSetRGB(64, 128, 250); |
41 | 42 |
42 // Limits. | 43 // Limits. |
43 | 44 |
44 gfx::Size GetImageSizeForWidth(int width, const gfx::Size& image_size) { | 45 gfx::Size GetImageSizeForWidth(int width, const gfx::Size& image_size) { |
45 const int kNotificationMaximumImageHeight = kNotificationWidth * 1.5; | 46 const int kNotificationMaximumImageHeight = kNotificationWidth * 1.5; |
46 | 47 |
47 gfx::Size size = image_size; | 48 gfx::Size size = image_size; |
48 if (width > 0 && !size.IsEmpty()) { | 49 if (width > 0 && !size.IsEmpty()) { |
49 double proportion = size.height() / static_cast<double>(size.width()); | 50 double proportion = size.height() / static_cast<double>(size.width()); |
(...skipping 19 matching lines...) Expand all Loading... |
69 | 70 |
70 // Colors. | 71 // Colors. |
71 const SkColor kBackgroundLightColor = SkColorSetRGB(0xf1, 0xf1, 0xf1); | 72 const SkColor kBackgroundLightColor = SkColorSetRGB(0xf1, 0xf1, 0xf1); |
72 const SkColor kBackgroundDarkColor = SkColorSetRGB(0xe7, 0xe7, 0xe7); | 73 const SkColor kBackgroundDarkColor = SkColorSetRGB(0xe7, 0xe7, 0xe7); |
73 const SkColor kShadowColor = SkColorSetARGB(0.3 * 255, 0, 0, 0); | 74 const SkColor kShadowColor = SkColorSetARGB(0.3 * 255, 0, 0, 0); |
74 const SkColor kMessageCenterBackgroundColor = SkColorSetRGB(0xf1, 0xf1, 0xf1); | 75 const SkColor kMessageCenterBackgroundColor = SkColorSetRGB(0xf1, 0xf1, 0xf1); |
75 const SkColor kFooterDelimiterColor = SkColorSetRGB(0xcc, 0xcc, 0xcc); | 76 const SkColor kFooterDelimiterColor = SkColorSetRGB(0xcc, 0xcc, 0xcc); |
76 const SkColor kFooterTextColor = SkColorSetRGB(0x7b, 0x7b, 0x7b); | 77 const SkColor kFooterTextColor = SkColorSetRGB(0x7b, 0x7b, 0x7b); |
77 | 78 |
78 } // namespace message_center | 79 } // namespace message_center |
OLD | NEW |