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

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: themify colors instead Created 6 years, 7 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/fallback_theme.cc » ('j') | ui/native_theme/fallback_theme.cc » ('J')
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..11dd5bdfebe4fdc74d9ae3c6e36be74947266eba 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 CallToAction
msw 2014/06/02 21:06:20 How about using the existing button colors above (
Evan Stade 2014/06/02 22:18:14 I don't follow. This code just makes blue buttons
msw 2014/06/02 22:39:44 Yeah, I suggest (1) using readable versions of the
+ // buttons.
+ case kColorId_CallToActionButtonEnabledColor:
msw 2014/06/03 22:20:41 Rename these kColorId_BlueButton*, or rename BlueB
Evan Stade 2014/06/03 23:16:12 Done. This reminds me of the part of Earthworm Ji
msw 2014/06/03 23:24:52 FYI, you haven't uploaded the latest patch set wit
Evan Stade 2014/06/04 00:12:10 Done.
+ return GetButtonStyle()->text[GTK_STATE_NORMAL];
+ case kColorId_CallToActionButtonDisabledColor:
+ return GetButtonStyle()->text[GTK_STATE_INSENSITIVE];
+ case kColorId_CallToActionButtonHighlightColor:
+ return GetButtonStyle()->base[GTK_STATE_SELECTED];
+ case kColorId_CallToActionButtonHoverColor:
+ return GetButtonStyle()->text[GTK_STATE_PRELIGHT];
// Textfield
case kColorId_TextfieldDefaultColor:
« no previous file with comments | « no previous file | ui/native_theme/fallback_theme.cc » ('j') | ui/native_theme/fallback_theme.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698