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

Unified Diff: ui/message_center/views/notification_view.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/message_center/message_center_style.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/notification_view.cc
diff --git a/ui/message_center/views/notification_view.cc b/ui/message_center/views/notification_view.cc
index 222224232c7d7319f5bfde539b4d062d82144547..fc7482a11219228f8ecfac3c80653cff771bf7ee 100644
--- a/ui/message_center/views/notification_view.cc
+++ b/ui/message_center/views/notification_view.cc
@@ -59,7 +59,6 @@ const size_t kMessageCharacterLimit =
// view::Label from modifying the text color and will not actually be drawn.
// See view::Label's RecalculateColors() for details.
const SkColor kRegularTextBackgroundColor = SK_ColorWHITE;
-const SkColor kDimTextColor = SkColorSetRGB(102, 102, 102);
const SkColor kDimTextBackgroundColor = SK_ColorWHITE;
// static
@@ -145,7 +144,7 @@ ItemView::ItemView(const message_center::NotificationItem& item) {
views::Label* message = new views::Label(item.message);
message->set_collapse_when_hidden(true);
message->SetHorizontalAlignment(gfx::ALIGN_LEFT);
- message->SetEnabledColor(kDimTextColor);
+ message->SetEnabledColor(message_center::kDimTextColor);
message->SetBackgroundColor(kDimTextBackgroundColor);
AddChildView(message);
@@ -415,7 +414,8 @@ NotificationView::NotificationView(const Notification& notification,
ui::TruncateString(notification.message(), kMessageCharacterLimit));
message_view_->SetLineHeight(kMessageLineHeight);
message_view_->SetVisible(!is_expanded() || !notification.items().size());
- message_view_->SetColors(kDimTextColor, kDimTextBackgroundColor);
+ message_view_->SetColors(message_center::kDimTextColor,
+ kDimTextBackgroundColor);
message_view_->set_border(MakeTextBorder(padding, 4, 0));
top_view_->AddChildView(message_view_);
accessible_lines.push_back(notification.message());
« no previous file with comments | « ui/message_center/message_center_style.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698