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

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

Issue 343513002: Refactor views::Label and gfx::RenderText shadow functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use simple set_shadows accessors. Created 6 years, 6 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
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 8efb0bdc0709c669383105c40598a855a497d5c1..e3a9487ff6cdf7d1d6d207a4f6d96e613fa42b8f 100644
--- a/ui/views/controls/button/blue_button.cc
+++ b/ui/views/controls/button/blue_button.cc
@@ -43,8 +43,8 @@ void BlueButton::ResetColorsFromNativeTheme() {
GetSystemColor(ui::NativeTheme::kColorId_BlueButtonDisabledColor));
// TODO(estade): this is not great on system themes.
- label()->SetShadowColors(kBlueButtonShadowColor, kBlueButtonShadowColor);
- label()->SetShadowOffset(0, 1);
+ label()->set_shadows(gfx::ShadowValues(1,
+ gfx::ShadowValue(gfx::Point(0, 1), 0, kBlueButtonShadowColor)));
}
}

Powered by Google App Engine
This is Rietveld 408576698