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

Unified Diff: ui/native_theme/common_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 | « chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc ('k') | ui/native_theme/fallback_theme.cc » ('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 49d59c8e1ddfd5739f7456c28837a084c93ecad1..6f27c417cc9ed46b02b7af8a3fcd5c46849f1e0d 100644
--- a/ui/native_theme/common_theme.cc
+++ b/ui/native_theme/common_theme.cc
@@ -34,6 +34,10 @@ const SkColor kHoverMenuItemBackgroundColor =
SkColorSetARGB(204, 255, 255, 255);
// Button:
const SkColor kButtonHoverBackgroundColor = SkColorSetRGB(0xEA, 0xEA, 0xEA);
+const SkColor kBlueButtonEnabledColor = SK_ColorWHITE;
+const SkColor kBlueButtonDisabledColor = SK_ColorWHITE;
+const SkColor kBlueButtonHighlightColor = SK_ColorWHITE;
+const SkColor kBlueButtonHoverColor = SK_ColorWHITE;
} // namespace
@@ -85,6 +89,18 @@ bool CommonThemeGetSystemColor(NativeTheme::ColorId color_id, SkColor* color) {
case NativeTheme::kColorId_ButtonHoverBackgroundColor:
*color = kButtonHoverBackgroundColor;
break;
+ case NativeTheme::kColorId_BlueButtonEnabledColor:
+ *color = kBlueButtonEnabledColor;
+ break;
+ case NativeTheme::kColorId_BlueButtonDisabledColor:
+ *color = kBlueButtonDisabledColor;
+ break;
+ case NativeTheme::kColorId_BlueButtonHighlightColor:
+ *color = kBlueButtonHighlightColor;
+ break;
+ case NativeTheme::kColorId_BlueButtonHoverColor:
+ *color = kBlueButtonHoverColor;
+ break;
default:
return false;
}
« no previous file with comments | « chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc ('k') | ui/native_theme/fallback_theme.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698