Gtk.Widget.prototype.modify_fg

function modify_fg(state:Gtk.StateType, color:Gdk.Color):void {
    // Gjs wrapper for gtk_widget_modify_fg()
}

Sets the foreground color for a widget in a particular state.

All other style values are left untouched. See also Gtk.modify_style.

state

the state for which to set the foreground color

color

the color to assign (does not need to be allocated), or null to undo the effect of previous calls to of Gtk.Widget.prototype.modify_fg.