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

Issue 2409563002: views: use darker stroke for non-prominent buttons (Closed)

Created:
4 years, 2 months ago by Elly Fong-Jones
Modified:
4 years, 2 months ago
Reviewers:
sky, Evan Stade
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

views: use darker stroke for non-prominent buttons This change: 1) Introduces kColorId_{Non,}ProminentButtonBorderColor 2) Uses it for the stroke instead of an alpha blend of the text color in MdTextButton BUG=654015 Committed: https://crrev.com/dcfe5a45b59aeb5ccc16a74fc5312aa7a95ac74e Cr-Commit-Position: refs/heads/master@{#424805}

Patch Set 1 #

Total comments: 1

Patch Set 2 : use magic alpha value #

Total comments: 2

Patch Set 3 : add an explanatory comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M ui/views/controls/button/md_text_button.cc View 1 2 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 21 (7 generated)
Elly Fong-Jones
estade: ptal?
4 years, 2 months ago (2016-10-10 13:07:56 UTC) #3
Evan Stade
https://codereview.chromium.org/2409563002/diff/1/ui/views/controls/button/md_text_button.cc File ui/views/controls/button/md_text_button.cc (right): https://codereview.chromium.org/2409563002/diff/1/ui/views/controls/button/md_text_button.cc#newcode274 ui/views/controls/button/md_text_button.cc:274: : ui::NativeTheme::kColorId_NonProminentButtonBorderColor); this doesn't work well for buttons that ...
4 years, 2 months ago (2016-10-10 17:13:49 UTC) #4
Elly Fong-Jones
On 2016/10/10 17:13:49, Evan Stade wrote: > https://codereview.chromium.org/2409563002/diff/1/ui/views/controls/button/md_text_button.cc > File ui/views/controls/button/md_text_button.cc (right): > > https://codereview.chromium.org/2409563002/diff/1/ui/views/controls/button/md_text_button.cc#newcode274 ...
4 years, 2 months ago (2016-10-11 11:12:04 UTC) #5
Evan Stade
On 2016/10/11 11:12:04, Elly Fong-Jones wrote: > On 2016/10/10 17:13:49, Evan Stade wrote: > > ...
4 years, 2 months ago (2016-10-11 21:17:04 UTC) #6
Evan Stade
On 2016/10/11 21:17:04, Evan Stade wrote: > On 2016/10/11 11:12:04, Elly Fong-Jones wrote: > > ...
4 years, 2 months ago (2016-10-11 21:21:32 UTC) #7
Elly Fong-Jones
On 2016/10/11 21:21:32, Evan Stade (ooo till 10-20) wrote: > On 2016/10/11 21:17:04, Evan Stade ...
4 years, 2 months ago (2016-10-12 13:52:29 UTC) #8
Elly Fong-Jones
estade: ptal? :)
4 years, 2 months ago (2016-10-12 14:16:51 UTC) #9
Elly Fong-Jones
hm, estade@'s OOO until 20161020. sky@, can you take a look? :)
4 years, 2 months ago (2016-10-12 14:18:47 UTC) #11
Evan Stade
lgtm > The closest 8-bit alpha value would be 4e, I think, which yields cccccc@1. ...
4 years, 2 months ago (2016-10-12 15:28:35 UTC) #12
sky
LGTM
4 years, 2 months ago (2016-10-12 16:25:34 UTC) #13
Elly Fong-Jones
https://codereview.chromium.org/2409563002/diff/20001/ui/views/controls/button/md_text_button.cc File ui/views/controls/button/md_text_button.cc (right): https://codereview.chromium.org/2409563002/diff/20001/ui/views/controls/button/md_text_button.cc#newcode274 ui/views/controls/button/md_text_button.cc:274: is_prominent_ ? SK_ColorTRANSPARENT : SkColorSetA(text_color, 0x4e); On 2016/10/12 15:28:35, ...
4 years, 2 months ago (2016-10-12 17:46:47 UTC) #14
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/2409563002/40001
4 years, 2 months ago (2016-10-12 17:47:17 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-12 18:45:30 UTC) #19
commit-bot: I haz the power
4 years, 2 months ago (2016-10-12 18:49:07 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/dcfe5a45b59aeb5ccc16a74fc5312aa7a95ac74e
Cr-Commit-Position: refs/heads/master@{#424805}

Powered by Google App Engine
This is Rietveld 408576698