New issue
Advanced search Search tips

Issue 654783 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Closed: Aug 2017
Cc:
Components:
EstimatedDays: ----
NextAction: 2017-08-04
OS: Mac
Pri: 2
Type: Bug

Blocking:
issue 630357



Sign in to add a comment

Harmony [Mac] - Buttons missing hover shadow

Project Member Reported by shrike@chromium.org, Oct 11 2016

Issue description

I thought I had filed this but I can't find it.

The Default button has a slight shadow when you mouse over it (and when pressed). This shadow is not appearing on the Mac. I assume that's because ripples have been disabled.

 

Comment 1 by shrike@chromium.org, Oct 19 2016

Summary: Harmony [Mac] - Buttons missing hover shadow (was: Harmony [Mac] - Default button missing hover shadow)
I see the spec also gives regular buttons a slight shadow on hover.

Cc: ellyjo...@chromium.org
Owner: patricia...@chromium.org
Fixing this is actually a bit involved. This happens because we disable ink drops on Mac, and the shadows happen to use the layer we add for ink drops. For Mac, we'll need to add a layer and draw our shadow to it without having the ink drops.

patricialor@, please have a look at this :)
Labels: -M-56
M-56 clearly didn't happen.

I don't know how to triage MacViews in depth, so not changing owner/priority.  This hasn't been touched in a while; please retriage.
Cc: -ellyjo...@chromium.org patricia...@chromium.org
NextAction: 2017-08-04
Owner: ellyjo...@chromium.org
Taking this on. I think a while ago we did some architectural changes so that the ink drop layer is present on Mac but unused, which means we can draw the shadow there properly now.
The NextAction date has arrived: 2017-08-04
Project Member

Comment 6 by bugdroid1@chromium.org, Aug 9 2017

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

commit dde3e544e6852a99205b605c80778e5b0096ebee
Author: Elly Fong-Jones <ellyjones@chromium.org>
Date: Wed Aug 09 15:18:15 2017

views: show hover shadows for buttons on Mac

Button hover shadows are implemented as part of the ink drop code, which has a
separate layer that it uses to draw these kinds of effects. The Mac code thus
far has stubbed out ink drops, but that prevents the effects layer from being
created, which prevents drop shadows from being drawn. This change causes
the ink drop code to still create the effects layer, but to draw the actual
ink drop itself with zero opacity on button press, so other effects that
depend on the ink drop code still work.

Note that controls which explicitly set their ink drop opacity (ie, don't just
use the default) will still get ink drops *even if* PlatformStyle disables
them. At the moment these controls are almost entirely ChromeOS-specific, but
a more principled approach to disabling ink drops for Mac might be in order
later.

Bug:  654783 
Change-Id: I4caeabc6511a22fe3cdd457d0c78c77798a14f56
Reviewed-on: https://chromium-review.googlesource.com/602253
Reviewed-by: Scott Violet <sky@chromium.org>
Reviewed-by: Ben Ruthig <bruthig@chromium.org>
Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org>
Cr-Commit-Position: refs/heads/master@{#492987}
[modify] https://crrev.com/dde3e544e6852a99205b605c80778e5b0096ebee/ui/views/animation/ink_drop_host_view.cc
[modify] https://crrev.com/dde3e544e6852a99205b605c80778e5b0096ebee/ui/views/controls/button/toggle_button_unittest.cc

Status: Fixed (was: Assigned)

Comment 8 by tapted@chromium.org, Aug 17 2017

Cc: tapted@chromium.org ellyjo...@chromium.org
 Issue 755847  has been merged into this issue.

Sign in to add a comment