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

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

Issue 23530018: Update notification text colors to match spec. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698