0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 8.1.2034: dark them of GTK 3 not supported

Problem:    Dark them of GTK 3 not supported.
Solution:   Add the "d" flag in 'guioptions'. (Jonathan Conder, closes #4934)
This commit is contained in:
Bram Moolenaar
2019-09-15 13:17:00 +02:00
parent 0571f3d6f9
commit 50bf7ce0c9
8 changed files with 56 additions and 1 deletions

View File

@@ -3130,6 +3130,19 @@ update_window_manager_hints(int force_width, int force_height)
}
}
#if defined(FEAT_GUI_DARKTHEME) || defined(PROTO)
void
gui_mch_set_dark_theme(int dark)
{
# if GTK_CHECK_VERSION(3,0,0)
GtkSettings *gtk_settings;
gtk_settings = gtk_settings_get_for_screen(gdk_screen_get_default());
g_object_set(gtk_settings, "gtk-application-prefer-dark-theme", (gboolean)dark, NULL);
# endif
}
#endif /* FEAT_GUI_DARKTHEME */
#ifdef FEAT_TOOLBAR
/*