Chromium Code Reviews
DescriptionAdjust sizes of material design shadows based on Sebastien's feedback.
This CL changes the size of the shadows on the call to action buttons
as they're hovered. This better matches Sebastien's original intent
(and he has approved the resulting screenshots).
Several changes occur simultaneously:
1. The blur radius and offset are changed from 2dp to 1dp.
2. A bug in gfx::CreateShadowDrawLooper is corrected. See crbug.com/624175.
This bug was somewhat papered over by the (correct) clipping margins that
gfx::ShadowValue::GetMargin calculated, but it still manifested as a
shadow that cut off too abruptly. I sussed this out after Sebastien
spotted the visual defect.
3. The way the shadow is painted in BorderShadowLayerDelegate is slightly
tweaked. The half pixel offset doesn't seem necessary any more with the
above fixes.
BUG=571500, 624175
Committed: https://crrev.com/bf0e5b5fd9b152e45eb4bd48e061c0d2fdfaffe6
Cr-Commit-Position: refs/heads/master@{#402968}
Patch Set 1 #Patch Set 2 : fix shadow draw looper as well #Patch Set 3 : add bug link #
Messages
Total messages: 13 (8 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||