createThemedColor

fun createThemedColor(baseColor: ERROR CLASS: Symbol not found for Color, alpha: Float = 1.0f): ERROR CLASS: Symbol not found for Color(source)

Gets Material 3 theme-aware colors with opacity. Useful for creating color variants while respecting the current theme.

Return

Color with adjusted alpha

Parameters

baseColor

The base color

alpha

The alpha/opacity value (0f-1f)