Widget.modifyFg

void modifyFg(gtk.types.StateType state, gdk.color.Color color)

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

All other style values are left untouched. See also [gtk.widget.Widget.modifyStyle].

Parameters

statethe state for which to set the foreground color
colorthe color to assign (does not need to be allocated), or null to undo the effect of previous calls to of [gtk.widget.Widget.modifyFg].

Deprecated

Use [gtk.widget.Widget.overrideColor] instead