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

Unified Diff: ui/native_theme/common_theme.cc

Issue 2375543003: Add SetProminent() to MdTextButton to create blue buttons. (Closed)
Patch Set: 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 71af8db44798ad6eb93d8815ce6e2b3ca8dde331..a0ca2e74767e790b1157a0f6213fee87a031c895 100644
--- a/ui/native_theme/common_theme.cc
+++ b/ui/native_theme/common_theme.cc
@@ -159,8 +159,8 @@ SkColor GetAuraColor(NativeTheme::ColorId color_id,
static const SkColor kBlueButtonPressedColor = SK_ColorWHITE;
static const SkColor kBlueButtonHoverColor = SK_ColorWHITE;
static const SkColor kBlueButtonShadowColor = SkColorSetRGB(0x53, 0x8C, 0xEA);
- static const SkColor kCallToActionColor = gfx::kGoogleBlue500;
- static const SkColor kTextOnCallToActionColor = SK_ColorWHITE;
+ static const SkColor kProminentButtonColor = gfx::kGoogleBlue500;
+ static const SkColor kTextOnProminentButtonColor = SK_ColorWHITE;
sky 2016/09/27 17:38:32 generally the 'Text' qualifier is later in the con
shrike 2016/09/27 17:52:51 kProminentButtonTextColor is good. The convention
static const SkColor kButtonPressedShade = SK_ColorTRANSPARENT;
// MenuItem:
static const SkColor kMenuBackgroundColor = SK_ColorWHITE;
@@ -294,10 +294,10 @@ SkColor GetAuraColor(NativeTheme::ColorId color_id,
return kBlueButtonHoverColor;
case NativeTheme::kColorId_BlueButtonShadowColor:
return kBlueButtonShadowColor;
- case NativeTheme::kColorId_CallToActionColor:
- return kCallToActionColor;
- case NativeTheme::kColorId_TextOnCallToActionColor:
- return kTextOnCallToActionColor;
+ case NativeTheme::kColorId_ProminentButtonColor:
+ return kProminentButtonColor;
+ case NativeTheme::kColorId_TextOnProminentButtonColor:
+ return kTextOnProminentButtonColor;
case NativeTheme::kColorId_ButtonPressedShade:
return kButtonPressedShade;

Powered by Google App Engine
This is Rietveld 408576698