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

Unified Diff: chrome/browser/ui/cocoa/browser/avatar_button.mm

Issue 7584015: [Mac] Fix avatar size after new icon drop. The image scaling behaves weird in a button cell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Different approach Created 9 years, 4 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 | « no previous file | chrome/browser/ui/cocoa/browser_window_controller_private.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/browser/avatar_button.mm
diff --git a/chrome/browser/ui/cocoa/browser/avatar_button.mm b/chrome/browser/ui/cocoa/browser/avatar_button.mm
index d32b525944cc7444222ce2974d965144bd1bae5d..d3e7c598c23b2f39ea4b727bf5e67dc667aee5ec 100644
--- a/chrome/browser/ui/cocoa/browser/avatar_button.mm
+++ b/chrome/browser/ui/cocoa/browser/avatar_button.mm
@@ -78,6 +78,9 @@ class Observer : public NotificationObserver {
[button_ setButtonType:NSMomentaryLightButton];
[button_ setImagePosition:NSImageOnly];
[[button_ cell] setImageScaling:NSImageScaleProportionallyDown];
+ [[button_ cell] setImagePosition:NSImageBelow];
+ // AppKit sets a title for some reason when using |-setImagePosition:|.
+ [button_ setTitle:nil];
[[button_ cell] setImageDimsWhenDisabled:NO];
[[button_ cell] setHighlightsBy:NSContentsCellMask];
[[button_ cell] setShowsStateBy:NSContentsCellMask];
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/browser_window_controller_private.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698