Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Issue 2101863002: Adjust sizes of material design shadows based on Sebastien's feedback. (Closed)

Created:
4 years, 5 months ago by Evan Stade
Modified:
4 years, 5 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, bruthig+ink_drop_chromium.org, dcheng
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adjust 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -14 lines) Patch
M ui/gfx/skia_util.h View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M ui/gfx/skia_util.cc View 1 2 chunks +44 lines, -1 line 0 comments Download
M ui/views/animation/ink_drop_painted_layer_delegates.cc View 1 1 chunk +6 lines, -9 lines 0 comments Download
M ui/views/controls/button/md_text_button.cc View 1 1 chunk +6 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (8 generated)
Evan Stade
4 years, 5 months ago (2016-06-28 23:20:00 UTC) #4
sky
LGTM
4 years, 5 months ago (2016-06-29 03:18:05 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2101863002/40001
4 years, 5 months ago (2016-06-29 20:49:53 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-06-29 22:40:34 UTC) #11
commit-bot: I haz the power
4 years, 5 months ago (2016-06-29 22:42:09 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/bf0e5b5fd9b152e45eb4bd48e061c0d2fdfaffe6
Cr-Commit-Position: refs/heads/master@{#402968}

Powered by Google App Engine
This is Rietveld 408576698