modify_text
Description:
[ Version ( deprecated = true , deprecated_since = "3.0" , replacement = "override_color" ) ]
public void modify_text (StateType state, Color? color)
public void modify_text (StateType state, Color? color)
Warning: modify_text is deprecated since 3.0. Use override_color.
Sets the text color for a widget in a particular state.
Note:
Use override_color instead
All other style values are left untouched. The text color is the foreground color used along with the base color (see modify_base) for widgets such as Entry and TextView. See also modify_style.
Parameters:
this |
a Widget |
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 modify_text. |