Skip to main content

content_color_for

Function content_color_for 

Source
pub fn content_color_for(
    background: Color,
    scheme: &MaterialColorScheme,
) -> Option<Color>
Expand description

Returns the matching content color for a background color in the scheme.

When the background color does not match a known scheme color, this returns None.