summaryrefslogtreecommitdiffstats
path: root/src/gui_gtk_x11.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-11-25 12:25:47 +0100
committerBram Moolenaar <Bram@vim.org>2020-11-25 12:25:47 +0100
commitff94bd9e4779b918f3761035f43a97ba7175b3ce (patch)
treee0f1ff53566e1ecaab6efc31a2c09616e2a5abec /src/gui_gtk_x11.c
parent813196784ad2a3a8cd65be5e975769d9768a728e (diff)
patch 8.2.2043: GTK3: white border around text stands outv8.2.2043
Problem: GTK3: white border around text stands out. Solution: Use current theme color. (closes #7357, issue #349)
Diffstat (limited to 'src/gui_gtk_x11.c')
-rw-r--r--src/gui_gtk_x11.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c
index 1a4ebf9ba6..e06bfd7f7d 100644
--- a/src/gui_gtk_x11.c
+++ b/src/gui_gtk_x11.c
@@ -4039,10 +4039,10 @@ gui_mch_new_colors(void)
#if GTK_CHECK_VERSION(3,22,2)
GtkStyleContext * const context
- = gtk_widget_get_style_context(gui.drawarea);
+ = gtk_widget_get_style_context(gui.mainwin);
GtkCssProvider * const provider = gtk_css_provider_new();
gchar * const css = g_strdup_printf(
- "widget#vim-gui-drawarea {\n"
+ "widget#vim-gui-drawarea, #vim-main-window {\n"
" background-color: #%.2lx%.2lx%.2lx;\n"
"}\n",
(gui.back_pixel >> 16) & 0xff,