• Peter Boström's avatar
    Instantly animate ink-drop-ripple effects for Mac · 3a3a8cba
    Peter Boström authored
    Instead of using a fully transparent ripple on Mac, this uses the same
    active-ripple effect as other platforms, but instantly animates to them.
    This effectively makes use of the active color in the ripple effect but
    without using the animation (flood-fill effect).
    
    This fixes a recent regression where MacViews + Refresh got ink-drop
    ripples on toolbar and bookmark buttons. It also effectively adds
    active-state color that was missing on Mac both for toolbar buttons and
    secondary UI MdTextButtons.
    
    Bug: chromium:848767
    Change-Id: Ia28d26c128dff12d2181c4dea41a0d4418a9d47c
    Reviewed-on: https://chromium-review.googlesource.com/1087949Reviewed-by: default avatarElly Fong-Jones <ellyjones@chromium.org>
    Reviewed-by: default avatarMohsen Izadi <mohsen@chromium.org>
    Commit-Queue: Peter Boström <pbos@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#564946}
    3a3a8cba
flood_fill_ink_drop_ripple.cc 17.9 KB