diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-30 06:13:06 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-30 06:13:06 +0000 |
commit | d22a59445ff187fac3b4c9bd4daf90c4c3b41850 (patch) | |
tree | 7afc3bfe31918007fd8e493c3eaf4f3485a17b5c /chrome | |
parent | de768a837346f2f78fbc5368bdf1d0c8e37c8f10 (diff) | |
download | chromium_src-d22a59445ff187fac3b4c9bd4daf90c4c3b41850.zip chromium_src-d22a59445ff187fac3b4c9bd4daf90c4c3b41850.tar.gz chromium_src-d22a59445ff187fac3b4c9bd4daf90c4c3b41850.tar.bz2 |
[mac] Make NTP floating style rect 1px thick. Also change the border color.
Remember: Cocoa coordinates are on 0.5.
http://imgur.com/1IIRZ
TBR=dmaclach
BUG=25941
TEST=Show NTP to ben. He shouldn't scream at you too much.
Review URL: http://codereview.chromium.org/342051
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30562 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/cocoa/bookmark_bar_toolbar_view.mm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/cocoa/bookmark_bar_toolbar_view.mm b/chrome/browser/cocoa/bookmark_bar_toolbar_view.mm index 3fe75dc..05acccc 100644 --- a/chrome/browser/cocoa/bookmark_bar_toolbar_view.mm +++ b/chrome/browser/cocoa/bookmark_bar_toolbar_view.mm @@ -76,14 +76,15 @@ const CGFloat kBorderRadius = 3.0; } // Draw our bookmark bar border on top of the background. - NSRect frame_rect = + NSRect frameRect = NSMakeRect(bookmarks::kNTPBookmarkBarPadding, bookmarks::kNTPBookmarkBarPadding, NSWidth(bounds) - 2 * bookmarks::kNTPBookmarkBarPadding, NSHeight(bounds) - 2 * bookmarks::kNTPBookmarkBarPadding); // Now draw a bezier path with rounded rectangles around the area + frameRect = NSInsetRect(frameRect, 0.5, 0.5); NSBezierPath* border = - [NSBezierPath bezierPathWithRoundedRect:frame_rect + [NSBezierPath bezierPathWithRoundedRect:frameRect xRadius:kBorderRadius yRadius:kBorderRadius]; NSColor* toolbarColor = @@ -100,7 +101,7 @@ const CGFloat kBorderRadius = 3.0; [border fill]; NSColor* borderColor = - [[self gtm_theme] strokeColorForStyle:GTMThemeStyleToolBar + [[self gtm_theme] strokeColorForStyle:GTMThemeStyleToolBarButton state:GTMThemeStateActiveWindow]; [borderColor set]; [border stroke]; |