Prefer dark theme on GTK 3

This commit is contained in:
Ghislain Antony Vaillant 2020-11-24 23:49:21 +01:00
parent 67d8586720
commit c6de559180
1 changed files with 4 additions and 0 deletions

View File

@ -207,6 +207,10 @@ auto pWindow::construct() -> void {
g_object_set_data(G_OBJECT(widget), "hiro::window", (gpointer)this);
g_object_set_data(G_OBJECT(formContainer), "hiro::window", (gpointer)this);
#if HIRO_GTK==3
g_object_set(gtk_settings_get_default(), "gtk-application-prefer-dark-theme", TRUE, NULL);
#endif
pApplication::state().windows.append(this);
}