Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Side by Side Diff: ui/message_center/message_center_style.h

Issue 256883002: Update notification style: allow 2-line titles if the message is blank. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix rsesek comments. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/size.h" 10 #include "ui/gfx/size.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 106
107 // Progress bar. 107 // Progress bar.
108 const int kProgressBarThickness = 5; 108 const int kProgressBarThickness = 5;
109 const int kProgressBarTopPadding = 16; 109 const int kProgressBarTopPadding = 16;
110 const int kProgressBarCornerRadius = 3; 110 const int kProgressBarCornerRadius = 3;
111 const SkColor kProgressBarBackgroundColor = SkColorSetRGB(216, 216, 216); 111 const SkColor kProgressBarBackgroundColor = SkColorSetRGB(216, 216, 216);
112 const SkColor kProgressBarSliceColor = SkColorSetRGB(120, 120, 120); 112 const SkColor kProgressBarSliceColor = SkColorSetRGB(120, 120, 120);
113 113
114 // Line limits. 114 // Line limits.
115 const int kTitleLineLimit = 1; 115 const int kTitleLineLimit = 1;
116 const int kTitleNoMessageLineLimit = 2;
116 const int kMessageCollapsedLineLimit = 2; 117 const int kMessageCollapsedLineLimit = 2;
117 const int kMessageExpandedLineLimit = 5; 118 const int kMessageExpandedLineLimit = 5;
118 const int kContextMessageLineLimit = 1; 119 const int kContextMessageLineLimit = 1;
119 120
120 // Around notifications //////////////////////////////////////////////////////// 121 // Around notifications ////////////////////////////////////////////////////////
121 122
122 // DIP dimensions (H = horizontal, V = vertical). 123 // DIP dimensions (H = horizontal, V = vertical).
123 const int kMarginBetweenItems = 10; // H & V space around & between 124 const int kMarginBetweenItems = 10; // H & V space around & between
124 // notifications. 125 // notifications.
125 126
126 // Colors. 127 // Colors.
127 extern const SkColor kBackgroundLightColor; // Behind notifications, gradient 128 extern const SkColor kBackgroundLightColor; // Behind notifications, gradient
128 extern const SkColor kBackgroundDarkColor; // from light to dark. 129 extern const SkColor kBackgroundDarkColor; // from light to dark.
129 130
130 extern const SkColor kShadowColor; // Shadow in the tray. 131 extern const SkColor kShadowColor; // Shadow in the tray.
131 132
132 extern const SkColor kMessageCenterBackgroundColor; 133 extern const SkColor kMessageCenterBackgroundColor;
133 extern const SkColor kFooterDelimiterColor; // Separator color for the tray. 134 extern const SkColor kFooterDelimiterColor; // Separator color for the tray.
134 extern const SkColor kFooterTextColor; // Text color for tray labels. 135 extern const SkColor kFooterTextColor; // Text color for tray labels.
135 136
136 } // namespace message_center 137 } // namespace message_center
137 138
138 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_STYLE_H_ 139 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_STYLE_H_
OLDNEW
« no previous file with comments | « ui/message_center/cocoa/notification_controller_unittest.mm ('k') | ui/message_center/views/constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698