Stylish Outlined Text Field Defaults
Default values and factory methods for StylishOutlinedTextField.
Provides a colors factory that returns a TextFieldColors instance configured for outlined text fields with Stylish styling. The colors adapt to the current theme (light/dark) and use Material 3's outlined text field color scheme as the base.
See also
Functions
Link copied to clipboard
fun colors(focusedBorderColor: Color = MaterialTheme.colorScheme.primary, unfocusedBorderColor: Color = MaterialTheme.colorScheme.outline, disabledBorderColor: Color = MaterialTheme.colorScheme.outline.copy(alpha = 0.38f), errorBorderColor: Color = MaterialTheme.colorScheme.error, focusedTextColor: Color = MaterialTheme.colorScheme.onSurface, unfocusedTextColor: Color = MaterialTheme.colorScheme.onSurface, disabledTextColor: Color = MaterialTheme.colorScheme.onSurface.copy(alpha = 0.38f), errorTextColor: Color = MaterialTheme.colorScheme.onSurface, focusedLabelColor: Color = MaterialTheme.colorScheme.primary, unfocusedLabelColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, disabledLabelColor: Color = MaterialTheme.colorScheme.onSurfaceVariant.copy(alpha = 0.38f), errorLabelColor: Color = MaterialTheme.colorScheme.error, placeholderColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, disabledPlaceholderColor: Color = MaterialTheme.colorScheme.onSurfaceVariant.copy(alpha = 0.38f), cursorColor: Color = MaterialTheme.colorScheme.primary, errorCursorColor: Color = MaterialTheme.colorScheme.error, focusedLeadingIconColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, unfocusedLeadingIconColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, disabledLeadingIconColor: Color = MaterialTheme.colorScheme.onSurfaceVariant.copy(alpha = 0.38f), errorLeadingIconColor: Color = MaterialTheme.colorScheme.error, focusedTrailingIconColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, unfocusedTrailingIconColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, disabledTrailingIconColor: Color = MaterialTheme.colorScheme.onSurfaceVariant.copy(alpha = 0.38f), errorTrailingIconColor: Color = MaterialTheme.colorScheme.error): TextFieldColors
Creates a TextFieldColors instance for outlined text fields with Stylish styling.