]> granicus.if.org Git - vim/commitdiff
patch 8.2.2043: GTK3: white border around text stands out v8.2.2043
authorBram Moolenaar <Bram@vim.org>
Wed, 25 Nov 2020 11:25:47 +0000 (12:25 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 25 Nov 2020 11:25:47 +0000 (12:25 +0100)
Problem:    GTK3: white border around text stands out.
Solution:   Use current theme color. (closes #7357, issue #349)

src/gui_gtk_x11.c
src/version.c

index 1a4ebf9ba6b41489fde04727bd0cbfe5db868a32..e06bfd7f7dba389d7aceee1063ee4039c2ee0a28 100644 (file)
@@ -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,
index fcd7243c82b1dfc4cb83af2f438259a0786d25ae..a187618c651f84bab425d6bd6567bef31509995a 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2043,
 /**/
     2042,
 /**/