Gtk.Widget.prototype.modify_style

function modify_style(style:Gtk.RcStyle):void {
    // Gjs wrapper for gtk_widget_modify_style()
}

Modifies style values on the widget.

Modifications made using this technique take precedence over style values set via an RC file, however, they will be overridden if a style is explicitely set on the widget using Gtk.set_style. The Gtk.RcStyle structure is designed so each field can either be set or unset, so it is possible, using this function, to modify some style values and leave the others unchanged.

Note that modifications made with this function are not cumulative with previous calls to Gtk.Widget.prototype.modify_style or with such functions as Gtk.Widget.prototype.modify_fg. If you wish to retain previous values, you must first call Gtk.Widget.prototype.get_modifier_style, make your modifications to the returned style, then call Gtk.Widget.prototype.modify_style with that style. On the other hand, if you first call Gtk.Widget.prototype.modify_style, subsequent calls to such functions Gtk.Widget.prototype.modify_fg will have a cumulative effect with the initial modifications.

style

the Gtk.RcStyle holding the style modifications