diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-15 21:28:50 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-15 21:28:50 +0000 |
commit | f205a5fc990bc1a16713bac9ca14c2a6d777af33 (patch) | |
tree | dadb32769239715bc7c029b45ec45ce946670f11 | |
parent | 084a6d9036c81e6605bd3784495a1d3a80902482 (diff) | |
download | chromium_src-f205a5fc990bc1a16713bac9ca14c2a6d777af33.zip chromium_src-f205a5fc990bc1a16713bac9ca14c2a6d777af33.tar.gz chromium_src-f205a5fc990bc1a16713bac9ca14c2a6d777af33.tar.bz2 |
mac: Update various corner radii to match the new toolbar button assets
Medium-term, these places should all use bitmaps instead.
BUG=118228
Review URL: https://codereview.chromium.org/11412014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168036 0039d316-1c4b-4281-b951-d872f2087c98
5 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/ui/cocoa/download/download_item_cell.mm b/chrome/browser/ui/cocoa/download/download_item_cell.mm index 46a74c9..e5100a0 100644 --- a/chrome/browser/ui/cocoa/download/download_item_cell.mm +++ b/chrome/browser/ui/cocoa/download/download_item_cell.mm @@ -421,7 +421,7 @@ using content::DownloadItem; NSRect drawFrame = NSInsetRect(cellFrame, 1.5, 1.5); NSRect innerFrame = NSInsetRect(cellFrame, 2, 2); - const float radius = 5; + const float radius = 3; NSWindow* window = [controlView window]; BOOL active = [window isKeyWindow] || [window isMainWindow]; diff --git a/chrome/browser/ui/cocoa/download/download_show_all_cell.mm b/chrome/browser/ui/cocoa/download/download_show_all_cell.mm index 85ceb5d..626529e 100644 --- a/chrome/browser/ui/cocoa/download/download_show_all_cell.mm +++ b/chrome/browser/ui/cocoa/download/download_show_all_cell.mm @@ -102,7 +102,7 @@ const CGFloat kOuterStrokeWidth = 1; NSRect drawFrame = NSInsetRect(cellFrame, 1.5, 1.5); NSRect innerFrame = NSInsetRect(cellFrame, 2, 2); - const float radius = 5; + const float radius = 3; NSWindow* window = [controlView window]; BOOL active = [window isKeyWindow] || [window isMainWindow]; diff --git a/chrome/browser/ui/cocoa/gradient_button_cell.mm b/chrome/browser/ui/cocoa/gradient_button_cell.mm index f16c133..8fb2bdb 100644 --- a/chrome/browser/ui/cocoa/gradient_button_cell.mm +++ b/chrome/browser/ui/cocoa/gradient_button_cell.mm @@ -464,7 +464,7 @@ static const NSTimeInterval kAnimationContinuousCycleDuration = 0.4; // is complete. NSRect drawFrame = NSInsetRect(cellFrame, 1.5 * lineWidth, 1.5 * lineWidth); NSRect innerFrame = NSInsetRect(cellFrame, lineWidth, lineWidth); - const CGFloat radius = 3.5; + const CGFloat radius = 3; ButtonType type = [[(NSControl*)controlView cell] tag]; switch (type) { diff --git a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm index d3cbe04..45a1e6a 100644 --- a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm +++ b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm @@ -22,7 +22,7 @@ namespace { const CGFloat kBaselineAdjust = 3.0; // Matches the clipping radius of |GradientButtonCell|. -const CGFloat kCornerRadius = 4.0; +const CGFloat kCornerRadius = 3.0; // How far to inset the left-hand decorations from the field's bounds. const CGFloat kLeftDecorationXOffset = 5.0; diff --git a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm index a38f728..a6cfa6c 100644 --- a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm +++ b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm @@ -32,7 +32,7 @@ const int kCellHeightAdjust = 6.0; // How to round off the popup's corners. Goal is to match star and go // buttons. -const CGFloat kPopupRoundingRadius = 3.5; +const CGFloat kPopupRoundingRadius = 3; // Gap between the field and the popup. const CGFloat kPopupFieldGap = 2.0; |