mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
Add a way to test titlebars in dark theme
This commit is contained in:
parent
730a68545c
commit
eed2799bfb
@ -13,6 +13,9 @@ main (int argc, char *argv[])
|
||||
|
||||
gtk_init (NULL, NULL);
|
||||
|
||||
if (g_getenv ("DARK"))
|
||||
g_object_set (gtk_settings_get_default (), "gtk-application-prefer-dark-theme", TRUE, NULL);
|
||||
|
||||
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
||||
gtk_window_set_default_size (GTK_WINDOW (window), 600, 400);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user