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

Unified Diff: chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm

Issue 2197253002: [Mac][MD User Menu] UI Tweaks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NSHeight + rebased Created 4 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
Index: chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm
diff --git a/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm b/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm
index 07967526126a3208235abdfe3d09877f48eb8735..0d888123c14c54933ac0a9eefdd8e6ddfc478b7b 100644
--- a/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm
+++ b/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm
@@ -171,6 +171,8 @@ NSImage* GetImageFromResourceID(int resourceId) {
[avatarButton setBezelStyle:NSShadowlessSquareBezelStyle];
[avatarButton setButtonType:NSMomentaryChangeButton];
+ if (switches::IsMaterialDesignUserMenu())
+ [[avatarButton cell] setHighlightsBy:NSNoCellMask];
[avatarButton setBordered:YES];
[avatarButton setAutoresizingMask:NSViewMinXMargin | NSViewMinYMargin];

Powered by Google App Engine
This is Rietveld 408576698