contentColorProvider

Functions summary

Modifier

Provides contentColor for text and iconography to consume.

Functions

Modifier.contentColorProvider

fun Modifier.contentColorProvider(contentColor: Color): Modifier

Provides contentColor for text and iconography to consume. Content color is provided automatically by surface - contentColorProvider can be used for cases where some text or icons inside a surface require a different color for emphasis.

Parameters
contentColor: Color

the content color to provide for descendants