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

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

Issue 16075002: mac: Make notification text colors match views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « ui/message_center/message_center_style.h ('k') | ui/message_center/views/notification_view.cc » ('j') | 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 19 matching lines...) Expand all
30 // Text sizes. 30 // Text sizes.
31 const int kTitleFontSize = 14; 31 const int kTitleFontSize = 14;
32 const int kTitleLineHeight = 20; 32 const int kTitleLineHeight = 20;
33 const int kMessageFontSize = 12; 33 const int kMessageFontSize = 12;
34 const int kMessageLineHeight = 18; 34 const int kMessageLineHeight = 18;
35 35
36 // Colors. 36 // Colors.
37 const SkColor kNotificationBackgroundColor = SkColorSetRGB(255, 255, 255); 37 const SkColor kNotificationBackgroundColor = SkColorSetRGB(255, 255, 255);
38 const SkColor kLegacyIconBackgroundColor = SkColorSetRGB(0xf5, 0xf5, 0xf5); 38 const SkColor kLegacyIconBackgroundColor = SkColorSetRGB(0xf5, 0xf5, 0xf5);
39 const SkColor kRegularTextColor = SkColorSetRGB(34, 34, 34); 39 const SkColor kRegularTextColor = SkColorSetRGB(34, 34, 34);
40 const SkColor kDimTextColor = SkColorSetRGB(102, 102, 102);
40 const SkColor kFocusBorderColor = SkColorSetRGB(64, 128, 250); 41 const SkColor kFocusBorderColor = SkColorSetRGB(64, 128, 250);
41 42
42 // Limits. 43 // Limits.
43 44
44 gfx::Size GetImageSizeForWidth(int width, const gfx::Size& image_size) { 45 gfx::Size GetImageSizeForWidth(int width, const gfx::Size& image_size) {
45 const int kNotificationMaximumImageHeight = kNotificationWidth * 1.5; 46 const int kNotificationMaximumImageHeight = kNotificationWidth * 1.5;
46 47
47 gfx::Size size = image_size; 48 gfx::Size size = image_size;
48 if (width > 0 && !size.IsEmpty()) { 49 if (width > 0 && !size.IsEmpty()) {
49 double proportion = size.height() / static_cast<double>(size.width()); 50 double proportion = size.height() / static_cast<double>(size.width());
(...skipping 19 matching lines...) Expand all
69 70
70 // Colors. 71 // Colors.
71 const SkColor kBackgroundLightColor = SkColorSetRGB(0xf1, 0xf1, 0xf1); 72 const SkColor kBackgroundLightColor = SkColorSetRGB(0xf1, 0xf1, 0xf1);
72 const SkColor kBackgroundDarkColor = SkColorSetRGB(0xe7, 0xe7, 0xe7); 73 const SkColor kBackgroundDarkColor = SkColorSetRGB(0xe7, 0xe7, 0xe7);
73 const SkColor kShadowColor = SkColorSetARGB(0.3 * 255, 0, 0, 0); 74 const SkColor kShadowColor = SkColorSetARGB(0.3 * 255, 0, 0, 0);
74 const SkColor kMessageCenterBackgroundColor = SkColorSetRGB(0xf1, 0xf1, 0xf1); 75 const SkColor kMessageCenterBackgroundColor = SkColorSetRGB(0xf1, 0xf1, 0xf1);
75 const SkColor kFooterDelimiterColor = SkColorSetRGB(0xcc, 0xcc, 0xcc); 76 const SkColor kFooterDelimiterColor = SkColorSetRGB(0xcc, 0xcc, 0xcc);
76 const SkColor kFooterTextColor = SkColorSetRGB(0x7b, 0x7b, 0x7b); 77 const SkColor kFooterTextColor = SkColorSetRGB(0x7b, 0x7b, 0x7b);
77 78
78 } // namespace message_center 79 } // namespace message_center
OLDNEW
« no previous file with comments | « ui/message_center/message_center_style.h ('k') | ui/message_center/views/notification_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698