Use css with Gtk.jl

How I can usw css in Gtk.jl?

I have now solved it with this function.

#using Pkg
#Pkg.add("Gtk")

using Gtk

function set_gtk_style!(widget::Gtk.GtkWidget, style::String, value::Int)
    sc = Gtk.GAccessor.style_context(widget)
    pr = Gtk.CssProviderLeaf(data="* {$style}")
    push!(sc, Gtk.StyleProvider(pr), value)
end
3 Likes