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