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

Unified Diff: ui/native_theme/native_theme_win.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/native_theme/native_theme_mac.mm ('k') | ui/views/controls/button/md_text_button.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/native_theme_win.cc
diff --git a/ui/native_theme/native_theme_win.cc b/ui/native_theme/native_theme_win.cc
index 6dc57e9dbc0aa3a53ed107c84153bcb225112d2a..39dc32477e977676b3386baaf41c3130a117c5a5 100644
--- a/ui/native_theme/native_theme_win.cc
+++ b/ui/native_theme/native_theme_win.cc
@@ -473,7 +473,7 @@ SkColor NativeThemeWin::GetSystemColor(ColorId color_id) const {
const SkColor kButtonBackgroundColor = SkColorSetRGB(0xde, 0xde, 0xde);
const SkColor kButtonHighlightColor = SkColorSetARGB(200, 255, 255, 255);
const SkColor kButtonHoverColor = SkColorSetRGB(6, 45, 117);
- const SkColor kCallToActionColorInvert = gfx::kGoogleBlue300;
+ const SkColor kProminentButtonColorInvert = gfx::kGoogleBlue300;
// MenuItem:
const SkColor kMenuSchemeHighlightBackgroundColorInvert =
SkColorSetRGB(0x30, 0x30, 0x30);
@@ -643,8 +643,8 @@ SkColor NativeThemeWin::GetSystemColor(ColorId color_id) const {
switch (color_id) {
case NativeTheme::kColorId_FocusedMenuItemBackgroundColor:
return kMenuSchemeHighlightBackgroundColorInvert;
- case NativeTheme::kColorId_CallToActionColor:
- return kCallToActionColorInvert;
+ case NativeTheme::kColorId_ProminentButtonColor:
+ return kProminentButtonColorInvert;
default:
return color_utils::InvertColor(GetAuraColor(color_id, this));
}
« no previous file with comments | « ui/native_theme/native_theme_mac.mm ('k') | ui/views/controls/button/md_text_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698