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

Unified Diff: chrome/browser/ui/libgtk2ui/native_theme_gtk2.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 | « no previous file | ui/native_theme/common_theme.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc
diff --git a/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc b/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc
index f47540de9a6c9166e46ab8cc751a20baf694c004..00f91524d6e7dd36b4c3fdb562a62bae21d960bb 100644
--- a/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc
+++ b/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc
@@ -236,6 +236,16 @@ GdkColor NativeThemeGtk2::GetSystemGdkColor(ColorId color_id) const {
return GetButtonStyle()->text[GTK_STATE_PRELIGHT];
case kColorId_ButtonHoverBackgroundColor:
return GetButtonStyle()->bg[GTK_STATE_PRELIGHT];
+ // TODO(estade): determine a more distinct color for the Blue
+ // buttons.
+ case kColorId_BlueButtonEnabledColor:
+ return GetButtonStyle()->text[GTK_STATE_NORMAL];
+ case kColorId_BlueButtonDisabledColor:
+ return GetButtonStyle()->text[GTK_STATE_INSENSITIVE];
+ case kColorId_BlueButtonHighlightColor:
+ return GetButtonStyle()->base[GTK_STATE_SELECTED];
+ case kColorId_BlueButtonHoverColor:
+ return GetButtonStyle()->text[GTK_STATE_PRELIGHT];
// Textfield
case kColorId_TextfieldDefaultColor:
« no previous file with comments | « no previous file | ui/native_theme/common_theme.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698