Gtk.Widget.prototype.modify_text

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

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

All other style values are left untouched. The text color is the foreground color used along with the base color (see Gtk.Widget.prototype.modify_base) for widgets such as Gtk.Entry and Gtk.TextView. See also Gtk.Widget.prototype.modify_style.

state

the state for which to set the text 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_text.