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

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

Issue 2251123002: macviews: honor system control tint setting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use luminance Created 4 years, 4 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/cocoa/views_nswindow_delegate.mm ('k') | no next file » | 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 860d256d0e8277bd4a0f5ef4d5d185e923241886..f8147937777dc8b575db1d55fb78e3905bafbb17 100644
--- a/ui/views/controls/button/label_button.cc
+++ b/ui/views/controls/button/label_button.cc
@@ -426,6 +426,9 @@ void LabelButton::OnNativeThemeChanged(const ui::NativeTheme* theme) {
ResetLabelEnabledColor();
// Invalidate the layout to pickup the new insets from the border.
InvalidateLayout();
+ // The entire button has to be repainted here, since the native theme can
+ // define the tint for the entire background/border/focus ring.
+ SchedulePaint();
}
void LabelButton::AddInkDropLayer(ui::Layer* ink_drop_layer) {
« no previous file with comments | « ui/views/cocoa/views_nswindow_delegate.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698