foreground

Sets foreground; null takes the color from the parent container.

Every descendant component that takes a style and sets no foreground of its own takes this one, the nearest ancestor's winning. null stops that at this component, and its descendants keep their own color.

Parameters

color

the color the component draws its text and content in, inherited by children that have none of their own.

See also