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

Unified Diff: chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc

Issue 360123003: Don't put a text shadow on blue buttons in gtk theme mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 5 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 d4b84fbde18efea0de693db1cb0be8ca35ce2994..41a03ed71eb99fd3a1d1d298ffbe4a4e971cf142 100644
--- a/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc
+++ b/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc
@@ -151,6 +151,9 @@ void NativeThemeGtk2::Paint(SkCanvas* canvas,
}
SkColor NativeThemeGtk2::GetSystemColor(ColorId color_id) const {
+ if (color_id == kColorId_BlueButtonShadowColor)
+ return SK_ColorTRANSPARENT;
+
return GdkColorToSkColor(GetSystemGdkColor(color_id));
}
@@ -270,6 +273,10 @@ GdkColor NativeThemeGtk2::GetSystemGdkColor(ColorId color_id) const {
return GetButtonStyle()->bg[GTK_STATE_PRELIGHT];
case kColorId_BlueButtonPressedColor:
return GetButtonStyle()->text[GTK_STATE_ACTIVE];
+ case kColorId_BlueButtonShadowColor:
+ // Should be handled in GetSystemColor().
+ NOTREACHED();
+ return GetButtonStyle()->text[GTK_STATE_NORMAL];
// 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