| 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 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_STYLE_H_ | 5 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_STYLE_H_ |
| 6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_STYLE_H_ | 6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_STYLE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "third_party/skia/include/core/SkColor.h" | 9 #include "third_party/skia/include/core/SkColor.h" |
| 10 #include "ui/gfx/geometry/size.h" | 10 #include "ui/gfx/geometry/size.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 // Within a notification /////////////////////////////////////////////////////// | 55 // Within a notification /////////////////////////////////////////////////////// |
| 56 | 56 |
| 57 // DIP dimensions (H = horizontal, V = vertical). | 57 // DIP dimensions (H = horizontal, V = vertical). |
| 58 | 58 |
| 59 const int kControlButtonSize = 29; // Square size of close & expand buttons. | 59 const int kControlButtonSize = 29; // Square size of close & expand buttons. |
| 60 const int kIconToTextPadding = 16; // H space between icon & title/message. | 60 const int kIconToTextPadding = 16; // H space between icon & title/message. |
| 61 const int kTextTopPadding = 12; // V space between text elements. | 61 const int kTextTopPadding = 12; // V space between text elements. |
| 62 const int kIconBottomPadding = 16; // Minimum non-zero V space between icon | 62 const int kIconBottomPadding = 16; // Minimum non-zero V space between icon |
| 63 // and frame. | 63 // and frame. |
| 64 // H space between the context message and the end of the card. |
| 65 const int kTextRightPadding = 23; |
| 66 const int kTextLeftPadding = kNotificationIconSize + kIconToTextPadding; |
| 67 const int kContextMessageViewWidth = |
| 68 kNotificationWidth - kTextLeftPadding - kTextRightPadding; |
| 64 | 69 |
| 65 // Text sizes. | 70 // Text sizes. |
| 66 const int kTitleFontSize = 14; // For title only. | 71 const int kTitleFontSize = 14; // For title only. |
| 67 const int kEmptyCenterFontSize = 13; // For empty message only. | 72 const int kEmptyCenterFontSize = 13; // For empty message only. |
| 68 const int kTitleLineHeight = 20; // In DIPs. | 73 const int kTitleLineHeight = 20; // In DIPs. |
| 69 const int kMessageFontSize = 12; // For everything but title. | 74 const int kMessageFontSize = 12; // For everything but title. |
| 70 const int kMessageLineHeight = 18; // In DIPs. | 75 const int kMessageLineHeight = 18; // In DIPs. |
| 71 | 76 |
| 72 // Colors. | 77 // Colors. |
| 73 extern const SkColor kNotificationBackgroundColor; // Background of the card. | 78 extern const SkColor kNotificationBackgroundColor; // Background of the card. |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 | 138 |
| 134 extern const SkColor kShadowColor; // Shadow in the tray. | 139 extern const SkColor kShadowColor; // Shadow in the tray. |
| 135 | 140 |
| 136 extern const SkColor kMessageCenterBackgroundColor; | 141 extern const SkColor kMessageCenterBackgroundColor; |
| 137 extern const SkColor kFooterDelimiterColor; // Separator color for the tray. | 142 extern const SkColor kFooterDelimiterColor; // Separator color for the tray. |
| 138 extern const SkColor kFooterTextColor; // Text color for tray labels. | 143 extern const SkColor kFooterTextColor; // Text color for tray labels. |
| 139 | 144 |
| 140 } // namespace message_center | 145 } // namespace message_center |
| 141 | 146 |
| 142 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_STYLE_H_ | 147 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_STYLE_H_ |
| OLD | NEW |