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

Unified Diff: chrome/browser/ui/libgtkui/gtk_ui.cc

Issue 2721493002: Gtk3: Fix GtkTextView colors (Closed)
Patch Set: Created 3 years, 10 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 | chrome/browser/ui/libgtkui/gtk_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
« no previous file with comments | « no previous file | chrome/browser/ui/libgtkui/gtk_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698