Not directly related to K/N, but could someone tel...
# kotlin-native
b
Not directly related to K/N, but could someone tell me how to set
background-colour
to GTK3 button? Preferably with inline css (no .css files)
k
gdk_color_parse ("red", &color);
gtk_widget_modify_bg ( GTK_WIDGET(button), GTK_STATE_NORMAL, &color);
b
Ah, but that's deprecated
And does not work on windows
Yeah, that worked, but is there a way to do that inline without css file? As in all my apo there's just one css prop that I'm modifying
n
Unfortunately there doesn't appear to be anything in the GObject related APIs that can do dynamic styling 😦 .
One has to wonder how custom GTK widgets are developed, especially styling, and layout.