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

Side by Side Diff: ui/message_center/message_center_constants.cc

Issue 13560002: Added padding below text in notifications. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased & implemented rsesek suggestion. Created 7 years, 8 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 #include "ui/message_center/message_center_constants.h" 5 #include "ui/message_center/message_center_constants.h"
6 6
7 namespace message_center { 7 namespace message_center {
8 8
9 // Exported values ///////////////////////////////////////////////////////////// 9 // Exported values /////////////////////////////////////////////////////////////
10 10
11 // Square image sizes in pixels. 11 // Square image sizes in pixels.
12 const int kNotificationButtonIconSize = 16; 12 const int kNotificationButtonIconSize = 16;
13 const int kNotificationIconSize = 80; 13 const int kNotificationIconSize = 80;
14 const int kNotificationPreferredImageSize = kNotificationWidth; 14 const int kNotificationPreferredImageSize = kNotificationWidth;
15 const int kSettingsIconSize = 16; 15 const int kSettingsIconSize = 16;
16 16
17 // Within a notification /////////////////////////////////////////////////////// 17 // Within a notification ///////////////////////////////////////////////////////
18 18
19 // Pixel dimensions (H = horizontal, V = vertical). 19 // Pixel dimensions.
20 const int kControlButtonSize = 29; 20 const int kControlButtonSize = 29;
21 const int kNotificationWidth = 360; 21 const int kNotificationWidth = 360;
22 const int kIconToTextPadding = 16; 22 const int kIconToTextPadding = 16;
23 const int kTextTopPadding = 6; 23 const int kTextTopPadding = 12;
24 24
25 // Text sizes 25 // Text sizes.
26 const int kTitleFontSize = 14; 26 const int kTitleFontSize = 14;
27 const int kMessageFontSize = 12; 27 const int kMessageFontSize = 12;
28 28
29 // Colors. 29 // Colors.
30 const SkColor kNotificationBackgroundColor = SkColorSetRGB(255, 255, 255); 30 const SkColor kNotificationBackgroundColor = SkColorSetRGB(255, 255, 255);
31 const SkColor kLegacyIconBackgroundColor = SkColorSetRGB(230, 230, 230); 31 const SkColor kLegacyIconBackgroundColor = SkColorSetRGB(230, 230, 230);
32 const SkColor kRegularTextColor = SkColorSetRGB(68, 68, 68); 32 const SkColor kRegularTextColor = SkColorSetRGB(68, 68, 68);
33 33
34 // Limits. 34 // Limits.
35 const int kNotificationMaximumImageHeight = kNotificationWidth; 35 const int kNotificationMaximumImageHeight = kNotificationWidth;
36 const size_t kNotificationMaximumItems = 8; 36 const size_t kNotificationMaximumItems = 8;
37 37
38 // Timing. 38 // Timing.
39 const int kAutocloseDefaultDelaySeconds = 8; 39 const int kAutocloseDefaultDelaySeconds = 8;
40 const int kAutocloseHighPriorityDelaySeconds = 25; 40 const int kAutocloseHighPriorityDelaySeconds = 25;
41 41
42 // Around notifications //////////////////////////////////////////////////////// 42 // Around notifications ////////////////////////////////////////////////////////
43 43
44 // Pixel dimensions (H = horizontal, V = vertical). 44 // Pixel dimensions.
45 const int kMarginBetweenItems = 10; 45 const int kMarginBetweenItems = 10;
46 46
47 // Colors. 47 // Colors.
48 const SkColor kBackgroundLightColor = SkColorSetRGB(0xf1, 0xf1, 0xf1); 48 const SkColor kBackgroundLightColor = SkColorSetRGB(0xf1, 0xf1, 0xf1);
49 const SkColor kBackgroundDarkColor = SkColorSetRGB(0xe7, 0xe7, 0xe7); 49 const SkColor kBackgroundDarkColor = SkColorSetRGB(0xe7, 0xe7, 0xe7);
50 50
51 } // namespace message_center 51 } // namespace message_center
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698