colors

@Composable
fun colors(): SegmentControlColors

the default colors for the segment control.

Return

The default colors for the segment control.


@Composable
fun colors(itemBackgroundColor: Color = Color.Unspecified, itemContentColor: Color = Color.Unspecified, selectedItemBackgroundColor: Color = Color.Unspecified, selectedItemContentColor: Color = Color.Unspecified): SegmentControlColors

Creates a new SegmentControlColors instance with the specified container color, content color, and selected content color. If the colors are not specified, the default colors from the color scheme will be used.

Return

A new SegmentControlColors instance with the specified container color, content color, and selected content color.

Parameters

itemBackgroundColor

The color to be used for the unchecked item background.

itemContentColor

The color to be used for the unchecked item content.

selectedItemBackgroundColor

The color to be used for the checked item background.

selectedItemContentColor

The color to be used for the checked item content.