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

Unified Diff: ui/native_theme/common_theme.cc

Issue 2375543003: Add SetProminent() to MdTextButton to create blue buttons. (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
« no previous file with comments | « ui/app_list/views/search_result_actions_view.cc ('k') | ui/native_theme/native_theme.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..ea18adb1fdf6a4dff183f7010f424401630297ed 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 kProminentButtonTextColor = SK_ColorWHITE;
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 kProminentButtonTextColor;
case NativeTheme::kColorId_ButtonPressedShade:
return kButtonPressedShade;
« no previous file with comments | « ui/app_list/views/search_result_actions_view.cc ('k') | ui/native_theme/native_theme.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698