diff options
author | johnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-30 21:13:08 +0000 |
---|---|---|
committer | johnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-30 21:13:08 +0000 |
commit | 73561a859fe6cf3cdd62431c26f7ccf601326ebc (patch) | |
tree | 880caa82d0760b4eeee5ba5e4a7b296f9dceed1b /chrome/browser | |
parent | 10549c3decb367c0b1a8b00e3b84ee96deb10a37 (diff) | |
download | chromium_src-73561a859fe6cf3cdd62431c26f7ccf601326ebc.zip chromium_src-73561a859fe6cf3cdd62431c26f7ccf601326ebc.tar.gz chromium_src-73561a859fe6cf3cdd62431c26f7ccf601326ebc.tar.bz2 |
Mac notification UI improvements: reduce the roundedness of the corners from 8 to 6px, and remove the visible bounding box from the pressed state of the wrench icon.
BUG=52545
TEST=notifications on mac
Review URL: http://codereview.chromium.org/3270007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57908 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/cocoa/notifications/balloon_controller.mm | 6 | ||||
-rw-r--r-- | chrome/browser/cocoa/notifications/balloon_view.mm | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/cocoa/notifications/balloon_controller.mm b/chrome/browser/cocoa/notifications/balloon_controller.mm index 1ab2805..82a7ca1 100644 --- a/chrome/browser/cocoa/notifications/balloon_controller.mm +++ b/chrome/browser/cocoa/notifications/balloon_controller.mm @@ -63,6 +63,7 @@ const int kRightMargin = 2; [optionsButton_ setHoverOpacity:0.9]; [optionsButton_ setPressedImage:image]; [optionsButton_ setPressedOpacity:1.0]; + [[optionsButton_ cell] setHighlightsBy:NSNoCellMask]; NSString* sourceLabelText = l10n_util::GetNSStringF( IDS_NOTIFICATION_BALLOON_SOURCE_LABEL, @@ -160,9 +161,8 @@ const int kRightMargin = 2; if (htmlContents_.get()) htmlContents_->UpdateActualSize(balloon_->content_size()); - [[self window] setFrame:NSMakeRect(x, y, w, h) - display:YES - animate:YES]; + [[[self window] animator] setFrame:NSMakeRect(x, y, w, h) + display:YES]; } // Returns the total width the view should be to accommodate the balloon. diff --git a/chrome/browser/cocoa/notifications/balloon_view.mm b/chrome/browser/cocoa/notifications/balloon_view.mm index 7a06f07..940b8ab 100644 --- a/chrome/browser/cocoa/notifications/balloon_view.mm +++ b/chrome/browser/cocoa/notifications/balloon_view.mm @@ -12,7 +12,7 @@ namespace { -const int kRoundedCornerSize = 8; +const int kRoundedCornerSize = 6; } // namespace |