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

Issue 11558006: Fix label color in TextButtonBase (Closed)

Created:
8 years ago by cpu_(ooo_6.6-7.5)
Modified:
8 years ago
Reviewers:
msw, sky
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

Fix label color in TextButtonBase TextButtonBase derived classes like radiobutton or checbox have the wrong color (blue) for their labels, the problem is the hardcoded values in native_theme_win.cc In this change I also consolidated to a single place where the colors are set for TextButtonBase. BUG=165615 TEST=see bug Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=172926

Patch Set 1 #

Total comments: 9

Patch Set 2 : #

Patch Set 3 : #

Total comments: 3

Patch Set 4 : #

Total comments: 1

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -20 lines) Patch
M ui/native_theme/native_theme_win.cc View 1 2 3 4 chunks +9 lines, -10 lines 0 comments Download
M ui/views/controls/button/text_button.cc View 1 2 3 4 1 chunk +2 lines, -10 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/11558006/diff/1/ui/views/controls/button/text_button.cc File ui/views/controls/button/text_button.cc (left): https://codereview.chromium.org/11558006/diff/1/ui/views/controls/button/text_button.cc#oldcode544 ui/views/controls/button/text_button.cc:544: color_highlight_ = theme->GetSystemColor( highlight_ is only used on windows ...
8 years ago (2012-12-12 03:42:12 UTC) #1
sky
You sure this doesn't change colors in bad ways on chromeos or windows?
8 years ago (2012-12-12 04:28:36 UTC) #2
sky
Adding Mike as I know he has been looking at picking up system colors recently.
8 years ago (2012-12-12 15:43:48 UTC) #3
msw
I'm in favor of buttons using COLOR_BTNTEXT and COLOR_GRAYTEXT by default instead of custom values. ...
8 years ago (2012-12-12 19:38:16 UTC) #4
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/11558006/diff/1/ui/views/controls/button/text_button.cc File ui/views/controls/button/text_button.cc (right): https://codereview.chromium.org/11558006/diff/1/ui/views/controls/button/text_button.cc#newcode210 ui/views/controls/button/text_button.cc:210: color_(0), On 2012/12/12 19:38:16, msw wrote: > nit: Skip ...
8 years ago (2012-12-12 22:53:25 UTC) #5
cpu_(ooo_6.6-7.5)
ok, new approach ready, please take a look.
8 years ago (2012-12-12 22:54:39 UTC) #6
msw
LGTM with nits. https://codereview.chromium.org/11558006/diff/11003/ui/native_theme/native_theme_win.cc File ui/native_theme/native_theme_win.cc (right): https://codereview.chromium.org/11558006/diff/11003/ui/native_theme/native_theme_win.cc#newcode62 ui/native_theme/native_theme_win.cc:62: COLOR_BTNTEXT, nit: alphabetize. https://codereview.chromium.org/11558006/diff/11003/ui/views/controls/button/text_button.cc File ui/views/controls/button/text_button.cc ...
8 years ago (2012-12-12 23:45:45 UTC) #7
cpu_(ooo_6.6-7.5)
changes done. sky rubber-stamp ?
8 years ago (2012-12-12 23:55:05 UTC) #8
sky
https://codereview.chromium.org/11558006/diff/12003/ui/views/controls/button/text_button.cc File ui/views/controls/button/text_button.cc (right): https://codereview.chromium.org/11558006/diff/12003/ui/views/controls/button/text_button.cc#newcode216 ui/views/controls/button/text_button.cc:216: OnNativeThemeChanged(GetNativeTheme()); Change this so that you aren't invoking a ...
8 years ago (2012-12-13 00:54:26 UTC) #9
cpu_(ooo_6.6-7.5)
change done. please take a look again.
8 years ago (2012-12-13 01:30:36 UTC) #10
sky
8 years ago (2012-12-13 17:25:55 UTC) #11
LGTM

Powered by Google App Engine
This is Rietveld 408576698