New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 635699 link

Starred by 8 users

Issue metadata

Status: WontFix
Owner:
Closed: Jul 10
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Update avatar button to MD

Project Member Reported by bettes@chromium.org, Aug 9 2016

Issue description

Keep pre-win10 user menu button styles as is. The following are for Windows 10 only: 

+ new signed out, single user state 
+ new hover and pressed states (parity with top-chrome)
+ menu appears on click-down (currently on click-release)

PREVIEW WINDOWS 10
https://folio.googleplex.com/chrome-ux-specs-and-sources/Chrome%20Desktop%20Sign%20In/user_menu-button/P%20-%20windows_10#%3Fz=fit

SPEC
https://folio.googleplex.com/chrome-ux-specs-and-sources/Chrome%20Desktop%20Sign%20In/user_menu-button#%2FSPEC%20-%20user-menu-button.png

 
SPEC - user-menu-button.png
341 KB View Download
Cc: shrike@chromium.org
Components: Services>SignIn
Labels: -OS-Mac
To be clear, this is a windows tracking bug only. Parallel work for Mac is at  crbug.com/590917 

Sorry for any confusion

Comment 4 Deleted

Comment 5 by bettes@chromium.org, Aug 10 2016

Summary: Update avatar button to MD (was: MD user menu button)

Comment 6 by bettes@chromium.org, Aug 10 2016

Cc: -shrike@chromium.org

Comment 7 by ew...@chromium.org, Aug 23 2016

Labels: signin-active-bug

Comment 8 by ew...@chromium.org, Aug 26 2016

Cc: rogerta@chromium.org
Labels: M-55
Owner: anthonyvd@chromium.org
Let's target M55 for this

Comment 9 by bettes@chromium.org, Sep 20 2016

Owner: bettes@chromium.org
New AI. Assigning back to myself.

Update specs for new user menu chip per discussion with Alex (chip should match window controls when window is maximized or when it’s non-maximized but tabstrip isn’t full; should only squish chip when window is non-maximized and tabstrip is full
Status: Started (was: Assigned)
Labels: Proj-signin
Labels: -Proj-signin

Comment 13 by ew...@chromium.org, Sep 21 2016

Labels: -M-55 M-56

Comment 14 by ew...@chromium.org, Oct 14 2016

Labels: identity-ux-backlog
Cc: -ew...@chromium.org -janeliulwq@google.com
Owner: ew...@chromium.org
There are now 2 avatar button presentations for windows 10: tall and cozy

Use tall when either of the following are true: 
    1. not maximized, but tabstrip isn’t full
    2. window is maximized

Use cozy when window is not maximized AND tabstrip is full

Other visual updates
+ new default state removes outlines and background color
+ local avatar icon should be colored #5a5a5a @ 0.7a (Same as the the close-x on tabs) 


Mocks
https://folio.googleplex.com/chrome-ux-specs-and-sources/Chrome%20Desktop%20Sign%20In/user_menu-button/P%20-%20windows_10#%3Fz=width

Specs
https://folio.googleplex.com/chrome-ux-specs-and-sources/Chrome%20Desktop%20Sign%20In/user_menu-button/Spec#%2FSPEC%20-%20avatar-button_WIN10.png%3Fz=width

01-local.png
76.6 KB View Download
02-signed-in.png
76.7 KB View Download
Screen Shot 2016-10-18 at 3.44.10 PM.png
215 KB View Download

Comment 16 by ew...@chromium.org, Oct 18 2016

Cc: ew...@chromium.org bettes@chromium.org anthonyvd@chromium.org
Labels: -identity-ux-backlog
Owner: msarda@chromium.org
Looks terrific, thanks Alan.

Re-assigning to Mihai, since his team is taking over this OKR for this quarter. I've removed the identity-ux-backlog label as well.
Status: Assigned (was: Started)
Eli: Just to make sure I understand the scope of this work: this is only for windows (and not for Linux), right? On Linux, the exting avatar button matches the UI of the maximize, minimize and close buttons styles.
I believe that's correct, that this is only for Windows. Alan, please correct me if that's wrong.
That is correct
Project Member

Comment 20 by sheriffbot@chromium.org, Dec 19 2016

Status: Available (was: Assigned)
--Chrome Identity automated triaging--

This bug is Assigned and has gone one month without any activity, so it is being moved to Available to indicate that it is not actively being worked on. If you are working on this bug, please mark yourself as the owner and move back to Assigned. Please see https://goo.gl/78kbny for more details. Please remove the Services>SignIn or UI>Browser>Profiles components if this bug isn't related to Chrome Identity.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: Assigned (was: Available)
Status: Started (was: Assigned)
Labels: -M-56 M-57
Owner: emx@chromium.org
Status: Assigned (was: Started)
This is also something we wanted to do for a while, but I never had time to do the implementation. It may be an interesting way to see how the various UIs interact and how the Views framework works.

I have a partial implementation here: https://codereview.chromium.org/2616523004/

Comment 25 by emx@chromium.org, Mar 30 2017

Status: Started (was: Assigned)

Comment 26 by emx@chromium.org, Mar 31 2017

bettes@: Hi Alan, to clarify the spec - should the generic icon (ic_account_circle) be shown even if there are multiple local profiles defined? Mihai and I both think that would get confusing and it would be better to keep the current behaviour, which is to show the generic icon only if there is only one profile (and it's not signed in and is not a guest profile).

Comment 27 by ew...@chromium.org, Mar 31 2017

Yep, we should only show the generic icon if there is a single, signed-out, non-guest local profile. Let's maintain that behavior.

Thanks Evgeny!

Comment 28 by emx@chromium.org, Apr 3 2017

The spec says "menu appears on click-down (not click-release)". Does this apply always or only to the MD button, i.e. the menu should continue to appear on mouse button release on platforms other than Windows 10 or when using themes?
I think that behavior should always apply, but Alan please correct me if that's wrong.

Also, a clarification question for Alan - remind me why are we only updated the avatar style for Win10? Is it just because the button styles for Win10 are so different than other platforms?
And actually, now that I'm thinking about it...we should probably only change the behavior for click ("menu appears on click-down") for Win10, if that's the only platform on which we're making these other changes.

But I could see that going either way. Alan, what are your thoughts?
Click-down applies to the MD button only. "Apply always" sounds like a broad claim so I'd need clarification on what you mean before responding to that :)

This is a windows bug, but the preferred behavior is click-down for mac, windows, linux. If you can cover all platforms, that'd be wonderful! 

Comment 32 by e...@google.com, Apr 6 2017

By "Apply always" I meant "always show the profiles menu on click-down on the avatar button on Windows, whether the button is the MD button or the existing button".

It probably wouldn't be difficult to change it on other platforms, too, but at the moment I'm only working on Windows, so I think that would be best covered by another bug, just to avoid blocking the rest of this. 
>> By "Apply always" I meant "always show the profiles menu on click-down on the avatar button on Windows, whether the button is the MD button or the existing button".

Yes, apply always

Comment 34 by ew...@chromium.org, Apr 11 2017

Just to update the bug with some of the things we confirmed over email:

1/ "Active" and "Pressed" are the same and can be treated the same in the code
2/ The click-down behavior should be applied across all versions of Windows, regardless of theme/OS
3/ The button height changes should apply across all of Win10, regardless of theme

Comment 35 by ew...@chromium.org, Apr 12 2017

Actually, one clarification: the button height changes shouldn't apply when a theme has been set. The click-down behavior should apply across all flavors of Windows; other than that, all the spec'ed layout/visual design changes should only apply to Win10 no-theme.

Comment 36 by emx@chromium.org, Apr 20 2017

Summary of changes made:

1) Show new MD button only on Windows 10 and only if not using a theme
2) Make MD button "cozy" (22px) when tabstrip is full and not maximised and not text direction is not RTL (can be tested with --force-ui-direction=rtl)
3) Make "tall" (non-cozy) MD button the same height as caption bar buttons - it's not pixel-perfect (see issue 668278)
4) Change icon and highlighting for MD button (see screenshots attached)
5) Show "ink drop" animation when MD button is clicked, like for bookmarks bar and other menu buttons
6) Make menu appear on press, not on release (for all platforms, not just Windows 10)
7) Keep button in "pressed" state while the profile menu is shown (for all platforms)

tall-normal.png
2.9 KB View Download
tall-hover.png
831 bytes View Download
tall-pressed.png
7.3 KB View Download
cozy-normal.png
4.0 KB View Download
cozy-hover.png
4.2 KB View Download

Comment 37 by emx@chromium.org, Apr 21 2017

2) above was supposed to say:

Make MD button "cozy" (22px) when tabstrip is full and not maximised and text direction is not RTL (i.e. is LTR)
FYI we have a pretty similar bug tracking work for the themed frame here: bug 591586
I have questions re: appearing on mouse up.

1. Other bubbles appear on mouse down. Why is this one different?
2. Comboboxes also appear on mouse down. This is arguably similar to a combobox in that it has an active selection and offers several other mutually exclusive selections to switch to. Should we not match that?
3. If this is a menu, should we be able to mouse down, move the mouse, and release on a row to effect selection?

Also: should "Manage people" have an ellipsis after it?
Project Member

Comment 41 by bugdroid1@chromium.org, May 9 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/d6dd415275e2ddf1b1e816de4a9f2b23d4236339

commit d6dd415275e2ddf1b1e816de4a9f2b23d4236339
Author: emx <emx@chromium.org>
Date: Tue May 09 09:34:27 2017

Add GetCaptionButtonHeightInDIPs() method

This CL adds the the function GetCaptionButtonHeightInDIPs() method that returns
the height of the caption buttons on Windows in DIPs and uses it for the
Windows 10 MD avatar button (see http://crrev.com/2851543002).

BUG= 635699 

Review-Url: https://codereview.chromium.org/2833363002
Cr-Commit-Position: refs/heads/master@{#470271}

[modify] https://crrev.com/d6dd415275e2ddf1b1e816de4a9f2b23d4236339/chrome/browser/ui/views/frame/minimize_button_metrics_win.cc
[modify] https://crrev.com/d6dd415275e2ddf1b1e816de4a9f2b23d4236339/chrome/browser/ui/views/frame/minimize_button_metrics_win.h

Project Member

Comment 43 by bugdroid1@chromium.org, May 12 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/da9bbac7c610430c9b94142d83ce56ee1d4f2f87

commit da9bbac7c610430c9b94142d83ce56ee1d4f2f87
Author: emx <emx@chromium.org>
Date: Fri May 12 12:20:41 2017

Update avatar button to MD (part 1)

Update avatar button to MD

Summary of changes made [ see screenshots in https://bugs.chromium.org/p/chromium/issues/detail?id=635699&desc=2#c36 ]:

1) Show new MD button only on Windows 10 and only if not using a theme
2) Make MD button "cozy" (20px) when tabstrip is full and not maximised and text direction is LTR (RTL can be tested with --force-ui-direction=rtl)
3) Make "tall" (non-cozy) MD button the same height as caption bar buttons - it's not pixel-perfect (see bug 716365)
4) Change icon and highlighting for MD button
5) Show "ink drop" animation when MD button is clicked, like for bookmarks bar and other menu buttons
6) Make menu appear on press, not on release (for all platforms, not just Windows 10)

BUG= 635699 

Review-Url: https://codereview.chromium.org/2851543002
Cr-Commit-Position: refs/heads/master@{#471279}

[modify] https://crrev.com/da9bbac7c610430c9b94142d83ce56ee1d4f2f87/chrome/browser/ui/BUILD.gn
[modify] https://crrev.com/da9bbac7c610430c9b94142d83ce56ee1d4f2f87/chrome/browser/ui/avatar_button_error_controller_delegate.h
[modify] https://crrev.com/da9bbac7c610430c9b94142d83ce56ee1d4f2f87/chrome/browser/ui/views/frame/avatar_button_manager.cc
[modify] https://crrev.com/da9bbac7c610430c9b94142d83ce56ee1d4f2f87/chrome/browser/ui/views/frame/avatar_button_manager.h
[modify] https://crrev.com/da9bbac7c610430c9b94142d83ce56ee1d4f2f87/chrome/browser/ui/views/frame/glass_browser_frame_view.cc
[modify] https://crrev.com/da9bbac7c610430c9b94142d83ce56ee1d4f2f87/chrome/browser/ui/views/frame/glass_browser_frame_view.h
[modify] https://crrev.com/da9bbac7c610430c9b94142d83ce56ee1d4f2f87/chrome/browser/ui/views/profiles/avatar_button.cc
[modify] https://crrev.com/da9bbac7c610430c9b94142d83ce56ee1d4f2f87/chrome/browser/ui/views/profiles/avatar_button.h
[delete] https://crrev.com/f2125fea63367c21af67cddccb5ba50d9309070d/chrome/browser/ui/views/profiles/avatar_button_delegate.h
[modify] https://crrev.com/da9bbac7c610430c9b94142d83ce56ee1d4f2f87/chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc
[modify] https://crrev.com/da9bbac7c610430c9b94142d83ce56ee1d4f2f87/ui/views/controls/button/label_button.cc
[modify] https://crrev.com/da9bbac7c610430c9b94142d83ce56ee1d4f2f87/ui/views/controls/button/label_button.h

Comment 44 by emx@chromium.org, May 12 2017

The above commit implements most of the spec, except for the requirement to keep the button looking "pressed" while the menu is shown. estade@ is going to do that as part of bug 591586.

Comment 45 by ew...@chromium.org, May 12 2017

Cc: pkasting@chromium.org emx@chromium.org est...@chromium.org
Owner: msarda@chromium.org
Is there any follow-up work that's left here, or can we mark this bug as Fixed?

Peter, I know you had a few outstanding questions for Alan - can we follow-up on those in another bug?
I think there's enough followup work that I'd rather keep this open, especially since most new UX was implemented on Win 10 only and other versions of Windows haven't been touched.

Comment 47 by ew...@chromium.org, May 12 2017

Labels: -M-57 -md-usermenu -signin-active-bug M-60
OK, sounds good. Who is the right owner for the follow-up work? Mihai mentioned that he'd chatted with you and that the platform team is interested in owning these kinds of UX changes to high-visibility surfaces (like the avatar menu).

Does it make sense for Evan to own this moving forward for the remaining follow-up items as well, since he's already working on Issue 591586?
Evan disclaimed willingness to follow up with Windows-specific stuff.  The person with the most expertise in Windows caption button work is bsep, but he's very loaded right now.  Do we have a sense for the urgency of this versus, say, Harmony work?

Comment 49 by ew...@chromium.org, May 12 2017

Cc: rpop@chromium.org msarda@chromium.org
Owner: ----
Status: Available (was: Started)
That's probably a question for Alan and +Rachel :)

Rachel, for context, this bug is about polishing/materializing the avatar button on Windows 10. Evgeny (on the signin team) landed a large chunk of the spec in the CL in comment #43, but there are still some follow-up polish things to do. It probably makes more sense for someone on the platform team (with more familiarity with this code) to own the follow-up polish work. I would imagine this is probably less of a priority than Harmony, but I defer to you folks.

Peter, one thing I'd like to clarify: if we just left things as-is (with Evgeny's CL checked in), are there any glaring inconsistencies/issues, or is the remaining follow-up work truly just polish? From looking at the screenshots linked in Evgeny's CL, things look pretty good to me. Just want to make sure that, for instance, we think it's strictly better to keep Evgeny's CL checked in, even if we don't immediately address the follow-up items remaining.
It's definitely better to keep his work checked in.

The remaining work on Win 10 is polish/a11y and code cleanup.  However, as noted above, no work has been done on Windows versions pre-10, so that would be substantial implementation; and I don't know whether this bug should track other OSes, which also aren't done yet.

Comment 51 by ew...@chromium.org, May 12 2017

Got it, thanks Peter. I would think that it makes sense to just expand the scope of this bug to include other platforms as well, for whenever UX/platform eng gets the bandwidth to address older OSes.

Comment 52 by rpop@chromium.org, May 12 2017

Agreed that this is much better than before for win10. Let's queue up the rest of the work for after harmony.
In an attempt to unblock this, let me clarify my thoughts here: 

If it's possible, we should keep these polish changes for Windows 10 only. The only version of Windows I'm worried about is 7 and I think the current design (for 7 and aero) is acceptable. We should not prioritize Windows 8. 

I think it's important to keep pushing forward on the polish of Windows 10, given how visible this UI is on the toolbar and our overall investment in the platform.

LMK what else we can do here. Thanks! 

Comment 54 by ew...@chromium.org, May 31 2017

Issue 717835 has been merged into this issue.

Comment 55 by bsep@chromium.org, Jun 10 2017

Owner: bsep@chromium.org
I noticed that the current button doesn't correctly handle dark themes (i.e. it remains black when the caption buttons are white). While peter is right I'm pretty swamped I might try to write a patch to fix this quickly anyway, since I think it looks pretty ugly...
switcher-button-dark.PNG
2.0 KB View Download
Totally understand. Whatever extra cycles you have would be most appreciated! Is this behind a flag?

Comment 57 by bsep@chromium.org, Jun 15 2017

It's not behind a flag. I'm assuming we'll need to merge to 60.
Project Member

Comment 58 by bugdroid1@chromium.org, Jun 24 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/fc4b39cbaf5823aafad88ef0b80c5f7eaf614dc8

commit fc4b39cbaf5823aafad88ef0b80c5f7eaf614dc8
Author: Bret Sepulveda <bsep@chromium.org>
Date: Sat Jun 24 20:25:06 2017

Add profile switcher button dark theme.

When the Windows titlebar and caption buttons have a dark theme, the
profile switcher button now has one to match. It doesn't yet update when
the accent color changes but at least it'll match eventually, when
Chrome restarts.

Bug:  635699 
Change-Id: I66316070bb90f9a11b7e6fa40b96ad2a2605d16a
Reviewed-on: https://chromium-review.googlesource.com/544640
Commit-Queue: Bret Sepulveda <bsep@chromium.org>
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/master@{#482160}
[modify] https://crrev.com/fc4b39cbaf5823aafad88ef0b80c5f7eaf614dc8/chrome/browser/ui/views/profiles/avatar_button.cc
[modify] https://crrev.com/fc4b39cbaf5823aafad88ef0b80c5f7eaf614dc8/chrome/browser/ui/views/profiles/avatar_button.h

I would find that 59.0.3071.115 installer and uninstall v60 and click on the v59 offline installer and you see that the button is now Win8

I am going to disable updates!!!
Status: WontFix (was: Available)
The current avatar button is being replaced by a toolbar button, so this is obsolete.

Sign in to add a comment