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

Unified Diff: ui/message_center/message_center_style.h

Issue 102473005: Refresh for the Chrome notifications image template. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mac unit test 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 side-by-side diff with in-line comments
Download patch
Index: ui/message_center/message_center_style.h
diff --git a/ui/message_center/message_center_style.h b/ui/message_center/message_center_style.h
index 7b7f1aa81e215767e39a6c9513fe30ecb6071418..6748683c685545071adbd3e111feb322218e8797 100644
--- a/ui/message_center/message_center_style.h
+++ b/ui/message_center/message_center_style.h
@@ -17,8 +17,10 @@ namespace message_center {
// Square image sizes in DIPs.
const int kNotificationButtonIconSize = 16;
const int kNotificationIconSize = 80;
-const int kNotificationPreferredImageSize = 360;
-const float kNotificationPreferredImageRatio = 1.5;
+// A border is applied to images that have a non-preferred aspect ratio.
+const int kNotificationImageBorderSize = 10;
+const int kNotificationPreferredImageWidth = 360;
+const int kNotificationPreferredImageHeight = 240;
const int kSettingsIconSize = 16;
// Limits.
@@ -66,7 +68,8 @@ const int kMessageLineHeight = 18; // In DIPs.
// Colors.
extern const SkColor kNotificationBackgroundColor; // Background of the card.
-extern const SkColor kIconBackgroundColor; // Used behind icons smaller.
+extern const SkColor kImageBackgroundColor; // Background of the image.
+extern const SkColor kIconBackgroundColor; // Used behind icons smaller
// than the icon view.
extern const SkColor kRegularTextColor; // Title, message, ...
extern const SkColor kDimTextColor;
« no previous file with comments | « ui/message_center/cocoa/notification_controller_unittest.mm ('k') | ui/message_center/message_center_style.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698