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

Unified Diff: ui/message_center/cocoa/tray_view_controller.mm

Issue 246433013: Merge 264607 "Fix the remaining subpixel antialiasing bugs in th..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1916/src/
Patch Set: Created 6 years, 8 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/cocoa/settings_entry_view.mm ('k') | ui/message_center/message_center.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/cocoa/tray_view_controller.mm
===================================================================
--- ui/message_center/cocoa/tray_view_controller.mm (revision 265415)
+++ ui/message_center/cocoa/tray_view_controller.mm (working copy)
@@ -14,6 +14,7 @@
#import "ui/base/cocoa/hover_image_button.h"
#include "ui/base/l10n/l10n_util_mac.h"
#include "ui/base/resource/resource_bundle.h"
+#import "ui/message_center/cocoa/opaque_views.h"
#import "ui/message_center/cocoa/notification_controller.h"
#import "ui/message_center/cocoa/settings_controller.h"
#include "ui/message_center/message_center.h"
@@ -398,19 +399,12 @@
ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
NSView* view = [self view];
- auto configureLabel = ^(NSTextField* textField) {
- [textField setAutoresizingMask:NSViewMinYMargin];
- [textField setBezeled:NO];
- [textField setBordered:NO];
- [textField setDrawsBackground:NO];
- [textField setEditable:NO];
- [textField setSelectable:NO];
- };
-
// Create the "Notifications" label at the top of the tray.
NSFont* font = [NSFont labelFontOfSize:message_center::kTitleFontSize];
- title_.reset([[NSTextField alloc] initWithFrame:NSZeroRect]);
- configureLabel(title_);
+ NSColor* color = gfx::SkColorToCalibratedNSColor(
+ message_center::kMessageCenterBackgroundColor);
+ title_.reset(
+ [[MCTextField alloc] initWithFrame:NSZeroRect backgroundColor:color]);
[title_ setFont:font];
[title_ setStringValue:
@@ -541,8 +535,8 @@
// Create the description field for the empty message center. Initially it is
// invisible.
- emptyDescription_.reset([[NSTextField alloc] initWithFrame:NSZeroRect]);
- configureLabel(emptyDescription_);
+ emptyDescription_.reset(
+ [[MCTextField alloc] initWithFrame:NSZeroRect backgroundColor:color]);
NSFont* smallFont =
[NSFont labelFontOfSize:message_center::kEmptyCenterFontSize];
« no previous file with comments | « ui/message_center/cocoa/settings_entry_view.mm ('k') | ui/message_center/message_center.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698