Index: chrome/browser/ui/libgtkui/gtk_ui.cc |
diff --git a/chrome/browser/ui/libgtkui/gtk_ui.cc b/chrome/browser/ui/libgtkui/gtk_ui.cc |
index 3423149019994af5d16209e86d65ffba69da8332..0e08463e3f649520785b67eb03806591eb8fb115 100644 |
--- a/chrome/browser/ui/libgtkui/gtk_ui.cc |
+++ b/chrome/browser/ui/libgtkui/gtk_ui.cc |
@@ -903,10 +903,14 @@ void GtkUi::LoadGtkValues() { |
if (SkColorGetA(location_bar_border)) |
colors_[ThemeProperties::COLOR_LOCATION_BAR_BORDER] = location_bar_border; |
- inactive_selection_bg_color_ = |
- GetSelectedBgColor("GtkTextView#textview.view:backdrop"); |
+ inactive_selection_bg_color_ = GetSelectionBgColor( |
+ GtkVersionCheck(3, 20) ? "GtkTextView#textview.view:backdrop " |
+ "#text:backdrop #selection:backdrop" |
+ : "GtkTextView:selected:backdrop"); |
inactive_selection_fg_color_ = |
- GetSelectedTextColor("GtkTextView#textview.view:backdrop"); |
+ GetFgColor(GtkVersionCheck(3, 20) ? "GtkTextView#textview.view:backdrop " |
+ "#text:backdrop #selection:backdrop" |
+ : "GtkTextView:selected:backdrop"); |
SkColor toolbar_button_border = |
GetBorderColor("GtkToolbar#toolbar GtkButton#button"); |