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

Unified Diff: ui/native_theme/common_theme.cc

Issue 2319313003: views: refactor away PlatformStyle::BackgroundColorForMdButton (Closed)
Patch Set: fix nits Created 4 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
Index: ui/native_theme/common_theme.cc
diff --git a/ui/native_theme/common_theme.cc b/ui/native_theme/common_theme.cc
index 82424be45160422c520e79600699d0a04f402380..4da91acea12919249415e4cf571cbdfa9b4eb434 100644
--- a/ui/native_theme/common_theme.cc
+++ b/ui/native_theme/common_theme.cc
@@ -155,6 +155,7 @@ SkColor GetAuraColor(NativeTheme::ColorId color_id,
static const SkColor kBlueButtonShadowColor = SkColorSetRGB(0x53, 0x8C, 0xEA);
static const SkColor kCallToActionColor = gfx::kGoogleBlue500;
static const SkColor kTextOnCallToActionColor = SK_ColorWHITE;
+ static const SkColor kButtonPressedShade = SK_ColorTRANSPARENT;
// MenuItem:
static const SkColor kMenuBackgroundColor = SK_ColorWHITE;
static const SkColor kMenuHighlightBackgroundColor =
@@ -291,6 +292,8 @@ SkColor GetAuraColor(NativeTheme::ColorId color_id,
return kCallToActionColor;
case NativeTheme::kColorId_TextOnCallToActionColor:
return kTextOnCallToActionColor;
+ case NativeTheme::kColorId_ButtonPressedShade:
+ return kButtonPressedShade;
// MenuItem
case NativeTheme::kColorId_MenuBorderColor:

Powered by Google App Engine
This is Rietveld 408576698