colors

fun colors(dividerColor: Color = LocalContentColor.current.copy(alpha = 0.2f), selectedItemBackgroundColor: Color = Color.Transparent, textColor: Color = LocalContentColor.current.copy(alpha = 0.7f), selectedTextColor: Color = LocalContentColor.current, disabledDividerColor: Color = dividerColor.copy(alpha = dividerColor.alpha * DISABLED_CONTAINER_ALPHA), disabledSelectedItemBackgroundColor: Color = selectedItemBackgroundColor.copy( alpha = selectedItemBackgroundColor.alpha * DISABLED_CONTAINER_ALPHA ), disabledTextColor: Color = textColor.copy(alpha = textColor.alpha * DISABLED_CONTENT_ALPHA), disabledSelectedTextColor: Color = selectedTextColor.copy( alpha = selectedTextColor.alpha * DISABLED_CONTENT_ALPHA )): PickerColors

Creates a PickerColors with the provided colors.

Return

A PickerColors instance with the specified colors.

Parameters

dividerColor

The color of the dividers.

selectedItemBackgroundColor

The background color of the selected item area.

textColor

The color of unselected item text.

selectedTextColor

The color of the selected item text.

disabledDividerColor

The divider color used when the picker is disabled.

disabledSelectedItemBackgroundColor

The selected item background color used when the picker is disabled.

disabledTextColor

The unselected item text color used when the picker is disabled.

disabledSelectedTextColor

The selected item text color used when the picker is disabled.