Is there any way to use theme colors in a Gtk4 DrawingArea?
In Gtk4, I want to plot something into a DrawingArea, and want the colors to depend on the theme. Since StyleContext is now deprecated from Gtk 4.10, how could this be achieved?
Gtk docs simply say "Stylable UI elements should use widgets", but I don't know how this is feasible for plain drawing code. Is there any way to get colors from CSS, or any other workaround?