inputFieldColors

@Composable
fun inputFieldColors(focusedTextColor: Color = SearchBarTokens.InputTextColor.value, unfocusedTextColor: Color = SearchBarTokens.InputTextColor.value, disabledTextColor: Color = FilledTextFieldTokens.DisabledInputColor.value.copy( alpha = FilledTextFieldTokens.DisabledInputOpacity ), cursorColor: Color = FilledTextFieldTokens.CaretColor.value, selectionColors: TextSelectionColors = LocalTextSelectionColors.current, focusedLeadingIconColor: Color = SearchBarTokens.LeadingIconColor.value, unfocusedLeadingIconColor: Color = SearchBarTokens.LeadingIconColor.value, disabledLeadingIconColor: Color = FilledTextFieldTokens.DisabledLeadingIconColor.value.copy( alpha = FilledTextFieldTokens.DisabledLeadingIconOpacity ), focusedTrailingIconColor: Color = SearchBarTokens.TrailingIconColor.value, unfocusedTrailingIconColor: Color = SearchBarTokens.TrailingIconColor.value, disabledTrailingIconColor: Color = FilledTextFieldTokens.DisabledTrailingIconColor.value.copy( alpha = FilledTextFieldTokens.DisabledTrailingIconOpacity ), focusedPlaceholderColor: Color = SearchBarTokens.SupportingTextColor.value, unfocusedPlaceholderColor: Color = SearchBarTokens.SupportingTextColor.value, disabledPlaceholderColor: Color = FilledTextFieldTokens.DisabledInputColor.value.copy( alpha = FilledTextFieldTokens.DisabledInputOpacity )): TextFieldColors

Creates a TextFieldColors that represents the different colors used in the search bar input field in different states.

Only a subset of the full list of TextFieldColors parameters are used in the input field. All other parameters have no effect.

Parameters

focusedTextColor

the color used for the input text of this input field when focused

unfocusedTextColor

the color used for the input text of this input field when not focused

disabledTextColor

the color used for the input text of this input field when disabled

cursorColor

the cursor color for this input field

selectionColors

the colors used when the input text of this input field is selected

focusedLeadingIconColor

the leading icon color for this input field when focused

unfocusedLeadingIconColor

the leading icon color for this input field when not focused

disabledLeadingIconColor

the leading icon color for this input field when disabled

focusedTrailingIconColor

the trailing icon color for this input field when focused

unfocusedTrailingIconColor

the trailing icon color for this input field when not focused

disabledTrailingIconColor

the trailing icon color for this input field when disabled

focusedPlaceholderColor

the placeholder color for this input field when focused

unfocusedPlaceholderColor

the placeholder color for this input field when not focused

disabledPlaceholderColor

the placeholder color for this input field when disabled