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 24 matching lines...) Expand all Loading... |
35 | 35 |
36 // Text sizes. | 36 // Text sizes. |
37 const int kTitleFontSize = 14; | 37 const int kTitleFontSize = 14; |
38 const int kTitleLineHeight = 20; | 38 const int kTitleLineHeight = 20; |
39 const int kMessageFontSize = 12; | 39 const int kMessageFontSize = 12; |
40 const int kMessageLineHeight = 18; | 40 const int kMessageLineHeight = 18; |
41 | 41 |
42 // Colors. | 42 // Colors. |
43 const SkColor kNotificationBackgroundColor = SkColorSetRGB(255, 255, 255); | 43 const SkColor kNotificationBackgroundColor = SkColorSetRGB(255, 255, 255); |
44 const SkColor kLegacyIconBackgroundColor = SkColorSetRGB(0xf5, 0xf5, 0xf5); | 44 const SkColor kLegacyIconBackgroundColor = SkColorSetRGB(0xf5, 0xf5, 0xf5); |
45 const SkColor kRegularTextColor = SkColorSetRGB(0x22, 0x22, 0x22); | 45 const SkColor kRegularTextColor = SkColorSetRGB(0x33, 0x33, 0x33); |
46 const SkColor kDimTextColor = SkColorSetRGB(0x66, 0x66, 0x66); | 46 const SkColor kDimTextColor = SkColorSetRGB(0x7f, 0x7f, 0x7f); |
47 const SkColor kFocusBorderColor = SkColorSetRGB(64, 128, 250); | 47 const SkColor kFocusBorderColor = SkColorSetRGB(64, 128, 250); |
48 | 48 |
49 // Limits. | 49 // Limits. |
50 | 50 |
51 gfx::Size GetImageSizeForWidth(int width, const gfx::Size& image_size) { | 51 gfx::Size GetImageSizeForWidth(int width, const gfx::Size& image_size) { |
52 const int kNotificationMaximumImageHeight = | 52 const int kNotificationMaximumImageHeight = |
53 kNotificationWidth * kNotificationPreferredImageRatio; | 53 kNotificationWidth * kNotificationPreferredImageRatio; |
54 | 54 |
55 gfx::Size size = image_size; | 55 gfx::Size size = image_size; |
56 if (width > 0 && !size.IsEmpty()) { | 56 if (width > 0 && !size.IsEmpty()) { |
(...skipping 20 matching lines...) Expand all Loading... |
77 | 77 |
78 // Colors. | 78 // Colors. |
79 const SkColor kBackgroundLightColor = SkColorSetRGB(0xf1, 0xf1, 0xf1); | 79 const SkColor kBackgroundLightColor = SkColorSetRGB(0xf1, 0xf1, 0xf1); |
80 const SkColor kBackgroundDarkColor = SkColorSetRGB(0xe7, 0xe7, 0xe7); | 80 const SkColor kBackgroundDarkColor = SkColorSetRGB(0xe7, 0xe7, 0xe7); |
81 const SkColor kShadowColor = SkColorSetARGB(0.3 * 255, 0, 0, 0); | 81 const SkColor kShadowColor = SkColorSetARGB(0.3 * 255, 0, 0, 0); |
82 const SkColor kMessageCenterBackgroundColor = SkColorSetRGB(0xee, 0xee, 0xee); | 82 const SkColor kMessageCenterBackgroundColor = SkColorSetRGB(0xee, 0xee, 0xee); |
83 const SkColor kFooterDelimiterColor = SkColorSetRGB(0xcc, 0xcc, 0xcc); | 83 const SkColor kFooterDelimiterColor = SkColorSetRGB(0xcc, 0xcc, 0xcc); |
84 const SkColor kFooterTextColor = SkColorSetRGB(0x7b, 0x7b, 0x7b); | 84 const SkColor kFooterTextColor = SkColorSetRGB(0x7b, 0x7b, 0x7b); |
85 | 85 |
86 } // namespace message_center | 86 } // namespace message_center |
OLD | NEW |