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

Unified Diff: ui/native_theme/fallback_theme.cc

Issue 288983010: fix text color of BlueButton on GTK-theme-mode Linux Aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add colors to common theme Created 6 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 | « ui/native_theme/common_theme.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/fallback_theme.cc
diff --git a/ui/native_theme/fallback_theme.cc b/ui/native_theme/fallback_theme.cc
index d995d71c69af5a1946c54ff702bb6b946ed595da..c2a4c91ff70c1c5f0667cb50204d9c991ac034a8 100644
--- a/ui/native_theme/fallback_theme.cc
+++ b/ui/native_theme/fallback_theme.cc
@@ -38,6 +38,10 @@ SkColor FallbackTheme::GetSystemColor(ColorId color_id) const {
static const SkColor kButtonHoverColor = kButtonEnabledColor;
static const SkColor kButtonHoverBackgroundColor =
SkColorSetRGB(0xEA, 0xEA, 0xEA);
+ static const SkColor kBlueButtonEnabledColor = SK_ColorWHITE;
+ static const SkColor kBlueButtonDisabledColor = SK_ColorWHITE;
+ static const SkColor kBlueButtonHighlightColor = SK_ColorWHITE;
+ static const SkColor kBlueButtonHoverColor = SK_ColorWHITE;
// MenuItem:
static const SkColor kEnabledMenuItemForegroundColor = kButtonEnabledColor;
static const SkColor kDisabledMenuItemForegroundColor = kButtonDisabledColor;
@@ -142,6 +146,14 @@ SkColor FallbackTheme::GetSystemColor(ColorId color_id) const {
return kButtonHoverColor;
case kColorId_ButtonHoverBackgroundColor:
return kButtonHoverBackgroundColor;
+ case kColorId_BlueButtonEnabledColor:
+ return kBlueButtonEnabledColor;
+ case kColorId_BlueButtonDisabledColor:
+ return kBlueButtonDisabledColor;
+ case kColorId_BlueButtonHighlightColor:
+ return kBlueButtonHighlightColor;
+ case kColorId_BlueButtonHoverColor:
+ return kBlueButtonHoverColor;
// MenuItem
case kColorId_EnabledMenuItemForegroundColor:
« no previous file with comments | « ui/native_theme/common_theme.cc ('k') | ui/native_theme/native_theme.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698