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

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

Issue 23534062: Fix Views blue button's blurry text on Aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make LabelButton::ResetColorsFromNativeTheme virtual; override for BlueButton. Created 7 years, 3 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/blue_button.h ('k') | ui/views/controls/button/label_button.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/blue_button.cc
diff --git a/ui/views/controls/button/blue_button.cc b/ui/views/controls/button/blue_button.cc
index 516363018f48b96862452477353a06f911711899..3e52afd896e2f2e7d736240b32fc4ff80797fe9d 100644
--- a/ui/views/controls/button/blue_button.cc
+++ b/ui/views/controls/button/blue_button.cc
@@ -63,7 +63,12 @@ BlueButton::BlueButton(ButtonListener* listener, const string16& text)
button_border->SetPainter(true, STATE_DISABLED,
Painter::CreateImagePainter(
*rb.GetImageSkiaNamed(IDR_BLUE_BUTTON_DISABLED), insets));
+}
+
+BlueButton::~BlueButton() {}
+void BlueButton::ResetColorsFromNativeTheme() {
+ LabelButton::ResetColorsFromNativeTheme();
if (!gfx::IsInvertedColorScheme()) {
for (size_t state = STATE_NORMAL; state < STATE_COUNT; ++state)
SetTextColor(static_cast<ButtonState>(state), kBlueButtonTextColor);
@@ -72,8 +77,6 @@ BlueButton::BlueButton(ButtonListener* listener, const string16& text)
}
}
-BlueButton::~BlueButton() {}
-
const char* BlueButton::GetClassName() const {
return BlueButton::kViewClassName;
}
« no previous file with comments | « ui/views/controls/button/blue_button.h ('k') | ui/views/controls/button/label_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698