textFieldColors

fun textFieldColors(backgroundColor: Color = Color.Transparent, labelColor: Color = COUITheme.colorScheme.onSurfaceSecondary, borderColor: Color = COUITheme.colorScheme.primary, unfocusedBorderColor: Color = COUITheme.colorScheme.dividerLine, errorColor: Color = COUITheme.colorScheme.error, counterColor: Color = COUITheme.colorScheme.onSurfaceContainerHigh, iconColor: Color = COUITheme.colorScheme.onSurfaceSecondary, disabledTextColor: Color = COUITheme.colorScheme.disabledOnSurface): TextFieldColors

Default colors used by the TextField.

Parameters

backgroundColor

The fill color of the TextFieldMode.Rectangle box. COUI rect mode is stroke-only (GradientDrawable with no solid color), so this defaults to transparent.

labelColor

The color of the label / placeholder (COUI android:textColorHint = couiColorLabelSecondary; the collapsed label couiColorSecondNeutral resolves to the same 54% neutral).

borderColor

The color of the border / focused underline (COUI couiStrokeColor = couiColorPrimary).

unfocusedBorderColor

The color of the border / underline when the TextField is not focused (COUI couiDefaultStrokeColor = couiColorDivider).

errorColor

The border / underline / label / counter-overflow color in error state (COUI couiColorError).

counterColor

The color of the character counter (COUI couiColorHintNeutral).

iconColor

The tint of the built-in clear / password buttons (COUI couiColorLabelSecondary).

disabledTextColor

The input text / label color when the TextField is disabled (COUI coui_edit_text_color state_enabled=false -> couiColorDisabledNeutral).