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

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

Issue 2441183002: Gtk3 theme: fix menu entry colors (Closed)
Patch Set: Gtk3 theme: fix menu entry colors Created 4 years, 2 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 | no next file » | 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 ba709bee19430cfb33b7ab45b4d08c76095b4200..9c49727c20695c5eca742550597bbe8bad110013 100644
--- a/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc
+++ b/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc
@@ -248,17 +248,10 @@ SkColor NativeThemeGtk2::GetSystemColor(ColorId color_id) const {
return GetTextAAColor(GetEntry(), NORMAL);
// MenuItem
-#if GTK_MAJOR_VERSION == 2
case kColorId_SelectedMenuItemForegroundColor:
return GetTextColor(GetMenuItem(), SELECTED);
case kColorId_FocusedMenuItemBackgroundColor:
return GetBGColor(GetMenuItem(), SELECTED);
-#else
- case kColorId_SelectedMenuItemForegroundColor:
- return GetTextColor(GetMenuItem(), PRELIGHT);
- case kColorId_FocusedMenuItemBackgroundColor:
- return GetBGColor(GetMenuItem(), PRELIGHT);
-#endif
case kColorId_EnabledMenuItemForegroundColor:
return GetTextColor(GetMenuItem(), NORMAL);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698