|
Remove views::Label::SetDisabledColor(). Replace with typography colors.
Everything calling Label::SetDisabledColor() is just using it as a
roundabout way to make the text grey instead of black. This is bad
because "disabled" is a property that is fed through to a11y clients.
Alternatively, a consumer calls SetDisabledColor(), but the Label is
never actually disabled.
In Harmony, the typography spec distinguishes between "secondary" grey
and "hint" grey which is what consumers should actually use to describe
their text (once there's a mock which says which should be used).
Bootstrap views::style::GetColor() to support consumers that want a grey
Label to specify style::STYLE_DISABLED, or STYLE_HINT when creating a
Label.
Only LabelButton was using SetDisabledColor() properly. It sometimes
gets a disabled color from the NativeTheme and sometimes overrides it.
Nothing else needs this, so move disabled-label functionality to a Label
subclass in a follow-up: crrev.com/2913933002
BUG= 691891
Review-Url: https://codereview.chromium.org/2910153002
Cr-Commit-Position: refs/heads/master@{#476897}
Committed: https://chromium.googlesource.com/chromium/src/+/30fe63c7bb9623a59ca6346ae956f5290f0864be
Total comments: 29
Total comments: 2
Total comments: 5
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+214 lines, -140 lines) |
Patch |
|
M |
ash/accelerators/exit_warning_handler.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
ash/sticky_keys/sticky_keys_overlay.cc
|
View
|
|
3 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
ash/system/toast/toast_overlay.cc
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chromeos/display/touch_calibrator/touch_calibrator_view.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
2 comments
|
Download
|
|
M |
chrome/browser/chromeos/ui/idle_app_name_notification_view.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
2 comments
|
Download
|
|
M |
chrome/browser/chromeos/ui/kiosk_external_update_notification.cc
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/harmony/chrome_typography.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/harmony/chrome_typography.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+16 lines, -6 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/harmony/harmony_typography_provider.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/harmony/harmony_typography_provider.cc
|
View
|
1
2
3
4
5
6
|
4 chunks |
+57 lines, -12 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/payments/credit_card_editor_view_controller.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+4 lines, -7 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/payments/editor_view_controller.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+5 lines, -9 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/payments/order_summary_view_controller.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -5 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/payments/payment_request_views_util.h
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/payments/payment_request_views_util.cc
|
View
|
1
2
3
4
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/payments/payment_sheet_view_controller.cc
|
View
|
1
2
3
4
5
6
7
8
|
7 chunks |
+20 lines, -35 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/profiles/profile_chooser_view.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/sad_tab_view.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
ui/chromeos/ime/candidate_view.cc
|
View
|
1
2
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
ui/views/controls/button/label_button.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
ui/views/controls/label.h
|
View
|
1
2
3
4
5
|
2 chunks |
+5 lines, -2 lines |
1 comment
|
Download
|
|
M |
ui/views/controls/label.cc
|
View
|
1
2
3
4
|
3 chunks |
+14 lines, -7 lines |
0 comments
|
Download
|
|
M |
ui/views/controls/link.h
|
View
|
1
2
|
2 chunks |
+1 line, -6 lines |
0 comments
|
Download
|
|
M |
ui/views/controls/link.cc
|
View
|
1
2
|
4 chunks |
+13 lines, -14 lines |
0 comments
|
Download
|
|
M |
ui/views/style/typography.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+10 lines, -4 lines |
0 comments
|
Download
|
|
M |
ui/views/style/typography.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
|
M |
ui/views/style/typography_provider.h
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+12 lines, -4 lines |
0 comments
|
Download
|
|
M |
ui/views/style/typography_provider.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+9 lines, -2 lines |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 55 (46 generated)
|