get_named

function get_named(name:String, variant:String):Gtk.CssProvider {
    // Gjs wrapper for gtk_css_provider_get_named()
}

Loads a theme from the usual theme paths

name

A theme name

variant

variant to load, for example, "dark", or null for the default

Returns

a Gtk.CssProvider with the theme loaded. This memory is owned by GTK+, and you must not free it.