PickerColors

data class PickerColors(val dividerColor: Color, val selectedItemBackgroundColor: Color, val textColor: Color, val selectedTextColor: Color, val disabledDividerColor: Color = dividerColor.copy(alpha = dividerColor.alpha * DISABLED_CONTAINER_ALPHA), val disabledSelectedItemBackgroundColor: Color = selectedItemBackgroundColor.copy( alpha = selectedItemBackgroundColor.alpha * DISABLED_CONTAINER_ALPHA ), val disabledTextColor: Color = textColor.copy(alpha = textColor.alpha * DISABLED_CONTENT_ALPHA), val disabledSelectedTextColor: Color = selectedTextColor.copy( alpha = selectedTextColor.alpha * DISABLED_CONTENT_ALPHA ))

Represents the colors used by Picker and related components.

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.

See also

Constructors

Link copied to clipboard
constructor(dividerColor: Color, selectedItemBackgroundColor: Color, textColor: Color, selectedTextColor: Color, 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 ))

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard