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

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

Issue 102473005: Refresh for the Chrome notifications image template. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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_style.h" 5 #include "ui/message_center/message_center_style.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 namespace message_center { 9 namespace message_center {
10 10
11 // Exported values ///////////////////////////////////////////////////////////// 11 // Exported values /////////////////////////////////////////////////////////////
12 12
13 // Colors. 13 // Colors.
14 const SkColor kMessageCenterBorderColor = SkColorSetRGB(0xC7, 0xCA, 0xCE); 14 const SkColor kMessageCenterBorderColor = SkColorSetRGB(0xC7, 0xCA, 0xCE);
15 const SkColor kMessageCenterShadowColor = SkColorSetARGB(0.5 * 255, 0, 0, 0); 15 const SkColor kMessageCenterShadowColor = SkColorSetARGB(0.5 * 255, 0, 0, 0);
16 16
17 // Within a notification /////////////////////////////////////////////////////// 17 // Within a notification ///////////////////////////////////////////////////////
18 18
19 // Colors. 19 // Colors.
20 const SkColor kNotificationBackgroundColor = SkColorSetRGB(255, 255, 255); 20 const SkColor kNotificationBackgroundColor = SkColorSetRGB(255, 255, 255);
21 const SkColor kIconBackgroundColor = SkColorSetRGB(0xf5, 0xf5, 0xf5); 21 const SkColor kIconBackgroundColor = SkColorSetRGB(0xf5, 0xf5, 0xf5);
22 const SkColor kImageBackgroundColor = SkColorSetRGB(0x22, 0x22, 0x22);
22 const SkColor kRegularTextColor = SkColorSetRGB(0x33, 0x33, 0x33); 23 const SkColor kRegularTextColor = SkColorSetRGB(0x33, 0x33, 0x33);
23 const SkColor kDimTextColor = SkColorSetRGB(0x7f, 0x7f, 0x7f); 24 const SkColor kDimTextColor = SkColorSetRGB(0x7f, 0x7f, 0x7f);
24 const SkColor kFocusBorderColor = SkColorSetRGB(64, 128, 250); 25 const SkColor kFocusBorderColor = SkColorSetRGB(64, 128, 250);
25 26
26 // Limits. 27 // Limits.
27 28
28 gfx::Size GetImageSizeForWidth(int width, const gfx::Size& image_size) { 29 gfx::Size GetImageSizeForWidth(int width, const gfx::Size& image_size) {
29 const int kNotificationMaximumImageHeight = 30 const int kNotificationMaximumImageHeight =
30 kNotificationWidth * kNotificationPreferredImageRatio; 31 kNotificationWidth * kNotificationPreferredImageRatio;
31 32
(...skipping 17 matching lines...) Expand all
49 50
50 // Colors. 51 // Colors.
51 const SkColor kBackgroundLightColor = SkColorSetRGB(0xf1, 0xf1, 0xf1); 52 const SkColor kBackgroundLightColor = SkColorSetRGB(0xf1, 0xf1, 0xf1);
52 const SkColor kBackgroundDarkColor = SkColorSetRGB(0xe7, 0xe7, 0xe7); 53 const SkColor kBackgroundDarkColor = SkColorSetRGB(0xe7, 0xe7, 0xe7);
53 const SkColor kShadowColor = SkColorSetARGB(0.3 * 255, 0, 0, 0); 54 const SkColor kShadowColor = SkColorSetARGB(0.3 * 255, 0, 0, 0);
54 const SkColor kMessageCenterBackgroundColor = SkColorSetRGB(0xee, 0xee, 0xee); 55 const SkColor kMessageCenterBackgroundColor = SkColorSetRGB(0xee, 0xee, 0xee);
55 const SkColor kFooterDelimiterColor = SkColorSetRGB(0xcc, 0xcc, 0xcc); 56 const SkColor kFooterDelimiterColor = SkColorSetRGB(0xcc, 0xcc, 0xcc);
56 const SkColor kFooterTextColor = SkColorSetRGB(0x7b, 0x7b, 0x7b); 57 const SkColor kFooterTextColor = SkColorSetRGB(0x7b, 0x7b, 0x7b);
57 58
58 } // namespace message_center 59 } // namespace message_center
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698