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

Issue 2963083003: Use kColorId_LabelEnabledColor in Checkbox, not kColorId_ButtonEnabledColor (Closed)

Created:
3 years, 5 months ago by tapted
Modified:
3 years, 5 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, tfarina, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use kColorId_LabelEnabledColor in Checkbox, not kColorId_ButtonEnabledColor Checkbox uses views::Button::STYLE_TEXTBUTTON, but only STYLE_BUTTON uses kColorId_ButtonEnabledColor in views::LabelButton (which views::Checkbox inherits from). Fix it. Also use the CreateDefaultInkDropRipple helper in Checkbox::CreateInkDropRipple() Ripples under harmony aren't derived from text colors, so we want to consolidate calls to the SquareInkDropRipple constructor. This special case isn't actually special. BUG=691891 Review-Url: https://codereview.chromium.org/2963083003 Cr-Commit-Position: refs/heads/master@{#483650} Committed: https://chromium.googlesource.com/chromium/src/+/2d322753596b18ed0d10242424edcefe4da835f2

Patch Set 1 #

Patch Set 2 : Fix checkbox color #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -10 lines) Patch
M ui/views/controls/button/checkbox.cc View 1 3 chunks +5 lines, -10 lines 1 comment Download

Dependent Patchsets:

Messages

Total messages: 16 (11 generated)
tapted
[1/4] PTAL https://codereview.chromium.org/2963083003/diff/20001/ui/views/controls/button/checkbox.cc File ui/views/controls/button/checkbox.cc (right): https://codereview.chromium.org/2963083003/diff/20001/ui/views/controls/button/checkbox.cc#newcode154 ui/views/controls/button/checkbox.cc:154: return CreateDefaultInkDropRipple(image()->GetMirroredBounds().CenterPoint(), This is https://cs.chromium.org/chromium/src/ui/views/animation/ink_drop_host_view.cc?l=170 std::unique_ptr<InkDropRipple> InkDropHostView::CreateDefaultInkDropRipple( ...
3 years, 5 months ago (2017-06-29 10:20:05 UTC) #9
Peter Kasting
LGTM
3 years, 5 months ago (2017-06-29 19:49:06 UTC) #10
tapted
(sending this one to CQ - it's isolated from everything else. There are some windows ...
3 years, 5 months ago (2017-06-30 06:08:18 UTC) #11
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/2963083003/20001
3 years, 5 months ago (2017-06-30 06:08:36 UTC) #13
commit-bot: I haz the power
3 years, 5 months ago (2017-06-30 07:18:14 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/2d322753596b18ed0d10242424ed...

Powered by Google App Engine
This is Rietveld 408576698