MODERATE

Properties

Link copied to clipboard
val labelRes: StringResource
Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

The category color for the applied theme. Resolved from the surface actually in use rather than isSystemInDarkTheme(), so a user who forces light while the system is dark (or vice versa — AppTheme takes an explicit darkTheme) still gets the tone that was contrast-checked against the surface they are looking at.

Link copied to clipboard
fun colorFor(darkTheme: Boolean): Color

The category color for darkTheme, legible as body text on surface and surfaceVariant in both.