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
the color used for the input text of this input field when focused
the color used for the input text of this input field when not focused
the color used for the input text of this input field when disabled
the cursor color for this input field
the colors used when the input text of this input field is selected
the leading icon color for this input field when focused
unfocusedLeadingIconColor
the leading icon color for this input field when not focused
the leading icon color for this input field when disabled
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
the placeholder color for this input field when focused
unfocusedPlaceholderColor
the placeholder color for this input field when not focused
the placeholder color for this input field when disabled