Source set: Common
public object TimePickerDefaults
Contains the default values used by TimePicker
Functions
colors
Source set: Common
@Composable
public fun colors(): TimePickerColors
Default colors used by a TimePicker in different states
colors
Source set: Common
@Composable
public fun colors(
clockDialColor: Color = Color.Unspecified,
clockDialSelectedContentColor: Color = Color.Unspecified,
clockDialContentColor: Color = Color.Unspecified,
selectorColor: Color = Color.Unspecified,
containerColor: Color = Color.Unspecified,
periodSelectorBorderColor: Color = Color.Unspecified,
periodSelectorSelectedContainerColor: Color = Color.Unspecified,
periodSelectorContainerColor: Color = Color.Unspecified,
periodSelectorSelectedContentColor: Color = Color.Unspecified,
periodSelectorContentColor: Color = Color.Unspecified,
timeSelectorSelectedContainerColor: Color = Color.Unspecified,
timeSelectorContainerColor: Color = Color.Unspecified,
timeSelectorSelectedContentColor: Color = Color.Unspecified,
timeSelectorContentColor: Color = Color.Unspecified,
): TimePickerColors
Default colors used by a TimePicker in different states
Parameters
| clockDialColor | the color of the clock dial |
| clockDialSelectedContentColor | the color of the numbers of the clock dial when they are selected or overlapping with the selector |
| clockDialContentColor | the color of the numbers of the clock dial when they are unselected |
| selectorColor | the color of the clock dial selector |
| containerColor | the container color of the time picker |
| 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 |
| timeSelectorSelectedContainerColor | color used for the selected container of the display buttons to switch between hour and minutes |
| timeSelectorContainerColor | color used for the container of the display buttons to switch between hour and minutes |
| timeSelectorSelectedContentColor | color used for the selected content of the display buttons to switch between hour and minutes |
| timeSelectorContentColor | color used for the content of the display buttons to switch between hour and minutes |
Return
TimePickerColors with specified color overrides
vibrantColors
Source set: Common
@Composable
public fun vibrantColors(): TimePickerColors
Default colors used by a vibrant TimePicker in different states
vibrantColors
Source set: Common
@Composable
public fun vibrantColors(
clockDialColor: Color = Color.Unspecified,
clockDialSelectedContentColor: Color = Color.Unspecified,
clockDialContentColor: Color = Color.Unspecified,
selectorColor: Color = Color.Unspecified,
containerColor: Color = Color.Unspecified,
periodSelectorBorderColor: Color = Color.Unspecified,
periodSelectorSelectedContainerColor: Color = Color.Unspecified,
periodSelectorContainerColor: Color = Color.Unspecified,
periodSelectorSelectedContentColor: Color = Color.Unspecified,
periodSelectorContentColor: Color = Color.Unspecified,
timeSelectorSelectedContainerColor: Color = Color.Unspecified,
timeSelectorContainerColor: Color = Color.Unspecified,
timeSelectorSelectedContentColor: Color = Color.Unspecified,
timeSelectorContentColor: Color = Color.Unspecified,
): TimePickerColors
Default colors used by a vibrant TimePicker in different states
Parameters
| clockDialColor | the color of the clock dial |
| clockDialSelectedContentColor | the color of the numbers of the clock dial when they are selected or overlapping with the selector |
| clockDialContentColor | the color of the numbers of the clock dial when they are unselected |
| selectorColor | the color of the clock dial selector |
| containerColor | the container color of the time picker |
| 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 |
| timeSelectorSelectedContainerColor | color used for the selected container of the display buttons to switch between hour and minutes |
| timeSelectorContainerColor | color used for the container of the display buttons to switch between hour and minutes |
| timeSelectorSelectedContentColor | color used for the selected content of the display buttons to switch between hour and minutes |
| timeSelectorContentColor | color used for the content of the display buttons to switch between hour and minutes |
Return
TimePickerColors with specified color overrides
layoutType
Source set: Common
@Composable
public fun layoutType(): TimePickerLayoutType
Default layout type, uses the screen dimensions to choose an appropriate layout.
shapes
Source set: Common
@Composable public fun shapes(): TimePickerShapes
Default shapes used by a TimePicker
shapes
Source set: Common
@Composable
public fun shapes(
timeFieldShape: Shape? = null,
periodSelectorShape: Shape? = null,
): TimePickerShapes
Default shapes used by a TimePicker
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