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

Unified Diff: ui/views/controls/button/label_button.cc

Issue 2620453005: Material Design: Fix MdLabelButton not updating text colors on theme changes (Closed)
Patch Set: Refactor Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/controls/button/label_button.h ('k') | ui/views/controls/button/md_text_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/label_button.cc
diff --git a/ui/views/controls/button/label_button.cc b/ui/views/controls/button/label_button.cc
index 21891fca927332c33e9336ab28c08d6d08eabedd..d61d44d9946f98d8e2273071540bafabc5b890cf 100644
--- a/ui/views/controls/button/label_button.cc
+++ b/ui/views/controls/button/label_button.cc
@@ -377,6 +377,11 @@ void LabelButton::SetBorder(std::unique_ptr<Border> border) {
ResetCachedPreferredSize();
}
+void LabelButton::ResetExplicitnessOfEnabledTextColors() {
+ for (ButtonState state : {STATE_NORMAL, STATE_HOVERED, STATE_PRESSED})
Evan Stade 2017/01/07 01:31:40 hmm, this is not quite as I imagined, because STAT
Tom (Use chromium acct) 2017/01/07 02:35:11 Done. I liked (c) the most so I went with that
+ explicitly_set_colors_[state] = false;
+}
+
gfx::Rect LabelButton::GetChildAreaBounds() {
return GetLocalBounds();
}
« no previous file with comments | « ui/views/controls/button/label_button.h ('k') | ui/views/controls/button/md_text_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698