readOnlyFieldColors

fun readOnlyFieldColors(labelColor: Color = Color.Unspecified, textColor: Color = Color.Unspecified, supportingTextColor: Color = Color.Unspecified, errorSupportingTextColor: Color = MaterialTheme.colorScheme.error): ReadOnlyFieldColors

Creates an instance of ReadOnlyFieldColors with default values from MaterialTheme.

Since

200.5.0

Parameters

labelColor

the color used for the label of this field.

textColor

the color used for the text of this field.

supportingTextColor

the color used for the supporting text of this field.

errorSupportingTextColor

the color used for the supporting text of this field when in error state.