override_background_color
Description:
public void override_background_color (StateFlags state, RGBA? color)
Warning: override_background_color is deprecated since 3.16.
Sets the background color to use for a widget.
This function is not useful in the context of CSS-based rendering. If you wish to change the way a widget renders its background you should use a custom CSS style, through an application-specific StyleProvider and a CSS style class. You can also override the default drawing of a widget through the draw signal, and use Cairo to draw a specific color, regardless of the CSS style.
All other style values are left untouched. See override_color.
Parameters:
this |
a Widget |
state |
the state for which to set the background color |
color |
the color to assign, or null to undo the effect of previous calls to override_background_color |