How would you change the theme of the program to dark?
From the command line you can do something like this:
GTK_THEME=Adwaita:dark ./your_gtk_progam
I'm not sure how to do it in the program code itself. You might look here.
EDIT:
Looks like you might just have to do this after gtk_init:
Code:GtkCssProvider *css = gtk_css_provider_get_named("Adwaita", "dark"); GdkScreen *screen = gdk_screen_get_default(); gtk_style_context_add_provider_for_screen( screen, GTK_STYLE_PROVIDER(css), GTK_STYLE_PROVIDER_PRIORITY_USER);
Last edited by algorism; 04-11-2017 at 05:10 PM.