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

Unified Diff: ui/views/style/platform_style.cc

Issue 2382443007: Clean up NativeTheme (particularly CommonTheme). (Closed)
Patch Set: share color constant Created 4 years, 2 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/menu/menu_item_view.cc ('k') | ui/views/style/platform_style_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/style/platform_style.cc
diff --git a/ui/views/style/platform_style.cc b/ui/views/style/platform_style.cc
index 39dc249c2d147d05bf3f1228724a60c5b32cda2e..a9fd9829c9d8473b82c6ad70c0c9487152b9801a 100644
--- a/ui/views/style/platform_style.cc
+++ b/ui/views/style/platform_style.cc
@@ -90,10 +90,6 @@ void PlatformStyle::ApplyLabelButtonTextStyle(
colors[Button::STATE_HOVERED] = kStyleButtonTextColor;
colors[Button::STATE_PRESSED] = kStyleButtonTextColor;
- const ui::NativeTheme* theme = label->GetNativeTheme();
- label->SetBackgroundColor(
- theme->GetSystemColor(ui::NativeTheme::kColorId_ButtonBackgroundColor));
- label->SetAutoColorReadabilityEnabled(false);
label->SetShadows(gfx::ShadowValues(
1, gfx::ShadowValue(gfx::Vector2d(0, 1), 0, kStyleButtonShadowColor)));
}
« no previous file with comments | « ui/views/controls/menu/menu_item_view.cc ('k') | ui/views/style/platform_style_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698