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
divider Color
The color of the dividers.
selected Item Background Color
The background color of the selected item area.
text Color
The color of unselected item text.
selected Text Color
The color of the selected item text.
disabled Divider Color
The divider color used when the picker is disabled.
disabled Selected Item Background Color
The selected item background color used when the picker is disabled.
disabled Text Color
The unselected item text color used when the picker is disabled.
disabled Selected Text Color
The selected item text color used when the picker is disabled.