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:
@@ -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
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user