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

Issue 851530 link

Starred by 4 users

Issue metadata

Status: Fixed
Owner:
Closed: Jul 10
Cc:
Components:
EstimatedDays: 5
NextAction: ----
OS: Linux , Windows , Mac
Pri: 1
Type: Bug

Blocked on:
issue 856515

Blocking:
issue 863978



Sign in to add a comment

Update identity sync state to show logged in but sync-paused

Project Member Reported by markchang@chromium.org, Jun 11 2018

Issue description

We need to update the avatar to show a signed-out in content area and sync-paused in Chrome.

Mock below.
 
Screen Shot 2018-06-11 at 9.51.48 AM.png
104 KB View Download

Comment 1 by bettes@chromium.org, Jun 11 2018

Cc: bklmn@chromium.org

Comment 2 by ew...@chromium.org, Jun 12 2018

Cc: ew...@chromium.org
Components: Services>SignIn

Comment 3 by ew...@chromium.org, Jun 12 2018

Labels: -Pri-2 M-69 Pri-1
Triage: please add estimated days thanks!

Comment 5 by pbos@chromium.org, Jun 15 2018

EstimatedDays: 5

Comment 6 by pbos@chromium.org, Jun 15 2018

FYI This might be understating it depending on how tricky it'll be to add text, the existing implementation is built on top of a button that only supports an image.
Cc: msarda@chromium.org sabineb@chromium.org droger@chromium.org kkaluri@chromium.org tangltom@chromium.org pbos@chromium.org rachelis@chromium.org namratakannan@chromium.org
 Issue 853363  has been merged into this issue.
Triage friendly ping: how's this going?

Comment 9 by pbos@chromium.org, Jun 28 2018

Blockedon: 856515
Some things (adding the text label) turns out easier than expected. We'll try reusing the inkdrop to get the specified colors. Blocking this on a crash in the InkDrop when we're resizing the view.
Project Member

Comment 10 by bugdroid1@chromium.org, Jul 10

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

commit 67dfce1fde18a82e97527ad3c755b2e9ea720d07
Author: Peter Boström <pbos@chromium.org>
Date: Tue Jul 10 15:59:28 2018

Add AvatarToolbarButton error states

Adds an error label and corresponding styling to AvatarToolbarButton to
signal error and paused states. This is done through the following
changes:

* Turn ToolbarButton from an ImageButton to LabelButton. After turning
  RTL flipping on by default this has no visual impact on buttons that
  do not use the label text but allows AvatarToolbarButton to use a
  label.

* Style ToolbarButton for text by using the same label-to-image spacing
  as bookmarks. Increase left insets when text is visible.

* Add highlight-color support to ToolbarButton. For AvatarToolbarButton
  this is currently used as red for sync errors and blue for paused.
  When set, this color is permanently painted with low opacity as the
  ToolbarButton background. It's also used as the inkdrop base color.

* Add inset support to SolidRoundRectPainter. This is required to match
  the inkdrop shapes which are inset from the view edges. This is done
  so that ToolbarButtons are larger than their visible size on ChromeOS
  touch devices to provide larger hit targets that are easier to hit.

This change also makes several AvatarToolbarButton getters const by
turning AvatarButtonController::HasAvatarError() const.

This change also fixes a RTL issue where the avatar image was flipped.

Bug:  chromium:851530 ,  chromium:860416 
Change-Id: I06ee5eeb55d5b19cd57bb7b8445f05ead4ff1216
Reviewed-on: https://chromium-review.googlesource.com/1123172
Reviewed-by: Trent Apted <tapted@chromium.org>
Reviewed-by: David Roger <droger@chromium.org>
Reviewed-by: Bret Sepulveda <bsep@chromium.org>
Commit-Queue: Peter Boström <pbos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#573752}
[modify] https://crrev.com/67dfce1fde18a82e97527ad3c755b2e9ea720d07/chrome/app/profiles_strings.grdp
[modify] https://crrev.com/67dfce1fde18a82e97527ad3c755b2e9ea720d07/chrome/browser/ui/avatar_button_error_controller.h
[modify] https://crrev.com/67dfce1fde18a82e97527ad3c755b2e9ea720d07/chrome/browser/ui/views/profiles/avatar_toolbar_button.cc
[modify] https://crrev.com/67dfce1fde18a82e97527ad3c755b2e9ea720d07/chrome/browser/ui/views/profiles/avatar_toolbar_button.h
[modify] https://crrev.com/67dfce1fde18a82e97527ad3c755b2e9ea720d07/chrome/browser/ui/views/toolbar/browser_app_menu_button.cc
[modify] https://crrev.com/67dfce1fde18a82e97527ad3c755b2e9ea720d07/chrome/browser/ui/views/toolbar/toolbar_action_view.cc
[modify] https://crrev.com/67dfce1fde18a82e97527ad3c755b2e9ea720d07/chrome/browser/ui/views/toolbar/toolbar_button.cc
[modify] https://crrev.com/67dfce1fde18a82e97527ad3c755b2e9ea720d07/chrome/browser/ui/views/toolbar/toolbar_button.h
[modify] https://crrev.com/67dfce1fde18a82e97527ad3c755b2e9ea720d07/chrome/browser/ui/views/toolbar/toolbar_ink_drop_util.h
[modify] https://crrev.com/67dfce1fde18a82e97527ad3c755b2e9ea720d07/ui/views/painter.cc
[modify] https://crrev.com/67dfce1fde18a82e97527ad3c755b2e9ea720d07/ui/views/painter.h

Status: Fixed (was: Assigned)
FWIW these look amazing.
Labels: -M-69 Group-Toolbar
Blocking: 863978

Sign in to add a comment