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

Unified Diff: ui/native_theme/native_theme_dark_aura.cc

Issue 2094553002: MD - Fix coloring of buttons on DL shelf. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compiling is always a plus Created 4 years, 6 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 | « chrome/browser/ui/views/download/download_shelf_view.cc ('k') | ui/views/controls/button/label_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_dark_aura.cc
diff --git a/ui/native_theme/native_theme_dark_aura.cc b/ui/native_theme/native_theme_dark_aura.cc
index f8bcef4521389ffa7cdf6270ce38908d76ae4cd8..1fb481465a6c9480b0f61a81c0116d4fe759dd24 100644
--- a/ui/native_theme/native_theme_dark_aura.cc
+++ b/ui/native_theme/native_theme_dark_aura.cc
@@ -18,6 +18,7 @@ SkColor NativeThemeDarkAura::GetSystemColor(ColorId color_id) const {
if (!ui::MaterialDesignController::IsModeMaterial())
return NativeThemeAura::GetSystemColor(color_id);
+ static const SkColor kButtonEnabledColor = SK_ColorWHITE;
static const SkColor kLinkEnabledColor = gfx::kGoogleBlue300;
static const SkColor kTextfieldDefaultColor = SK_ColorWHITE;
@@ -34,6 +35,8 @@ SkColor NativeThemeDarkAura::GetSystemColor(ColorId color_id) const {
switch (color_id) {
// Button
+ case kColorId_ButtonEnabledColor:
+ return kButtonEnabledColor;
case kColorId_CallToActionColor:
return kLinkEnabledColor;
@@ -68,7 +71,6 @@ SkColor NativeThemeDarkAura::GetSystemColor(ColorId color_id) const {
return gfx::kGoogleBlue300;
// Intentional pass-throughs to NativeThemeAura.
- case kColorId_ButtonEnabledColor:
case kColorId_TextOnCallToActionColor:
case kColorId_ResultsTableHoveredBackground:
case kColorId_ResultsTableSelectedBackground:
« no previous file with comments | « chrome/browser/ui/views/download/download_shelf_view.cc ('k') | ui/views/controls/button/label_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698