Compose Modifier

contentColorProvider

Provides contentColor for text and iconography to consume.

contentColorProvider

Source set: Android
public 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 the content color to provide for descendants
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: