zng::color

Function accent_color

source
pub fn accent_color(
    child: impl UiNode,
    color: impl IntoVar<LightDark>,
) -> impl UiNode
Expand description

P Defines the preferred accent color in the widget and descendants.

The is a distinct background/fill color that contrasts with the foreground text color.

Sets the COLOR_SCHEME_VAR.