🌈 Create new beautiful Compose Gradients with our new wesite ->
Object

TimeInputDefaults

Default values used by TimeInput

Source set: Common
public object TimeInputDefaults

Default values used by TimeInput

Functions

colors

Source set: Common
@Composable
    public fun colors(): TimeInputColors

Default colors used by a TimeInput in different states

colors

Source set: Common
@Composable
    public fun colors(
        containerColor: Color = Color.Unspecified,
        periodSelectorBorderColor: Color = Color.Unspecified,
        periodSelectorSelectedContainerColor: Color = Color.Unspecified,
        periodSelectorContainerColor: Color = Color.Unspecified,
        periodSelectorSelectedContentColor: Color = Color.Unspecified,
        periodSelectorContentColor: Color = Color.Unspecified,
        timeTextFieldColors: TextFieldColors? = null,
    ): TimeInputColors

Default colors used by a TimeInput in different states

Parameters

containerColor the container color of the time input
periodSelectorBorderColor the color used for the border of the AM/PM toggle
periodSelectorSelectedContainerColor the color used for the selected container of the AM/PM toggle
periodSelectorContainerColor the color used for the container of the AM/PM toggle
periodSelectorSelectedContentColor color used for the selected content of the AM/PM toggle
periodSelectorContentColor color used for the content of the AM/PM toggle
timeTextFieldColors the TextFieldColors used for the hour and minute text fields

Return

TimeInputColors with specified color overrides

vibrantColors

Source set: Common
@Composable
    public fun vibrantColors(): TimeInputColors

Default colors used by a vibrant TimeInput in different states

vibrantColors

Source set: Common
@Composable
    public fun vibrantColors(
        containerColor: Color = Color.Unspecified,
        periodSelectorBorderColor: Color = Color.Unspecified,
        periodSelectorSelectedContainerColor: Color = Color.Unspecified,
        periodSelectorContainerColor: Color = Color.Unspecified,
        periodSelectorSelectedContentColor: Color = Color.Unspecified,
        periodSelectorContentColor: Color = Color.Unspecified,
        timeTextFieldColors: TextFieldColors? = null,
    ): TimeInputColors

Default colors used by a vibrant TimeInput in different states

Parameters

containerColor the container color of the time input
periodSelectorBorderColor the color used for the border of the AM/PM toggle
periodSelectorSelectedContainerColor the color used for the selected container of the AM/PM toggle
periodSelectorContainerColor the color used for the container of the AM/PM toggle
periodSelectorSelectedContentColor color used for the selected content of the AM/PM toggle
periodSelectorContentColor color used for the content of the AM/PM toggle
timeTextFieldColors the TextFieldColors used for the hour and minute text fields

Return

TimeInputColors with specified color overrides

shapes

Source set: Common
@Composable public fun shapes(): TimePickerShapes

Default shapes used by a TimeInput

shapes

Source set: Common
@Composable
    public fun shapes(
        timeFieldShape: Shape? = null,
        periodSelectorShape: Shape? = null,
    ): TimePickerShapes

Default shapes used by a TimeInput

Parameters

timeFieldShape the shape used for the time fields. If null, the default shape will be used.
periodSelectorShape the shape used for the AM/PM toggle. If null, the default shape will be used.

Return

TimePickerShapes with specified shape overrides

Content updated: