DatePickerColors


Represents the colors used by the date picker.

Summary

Public constructors

DatePickerColors(
    containerColor: Color,
    titleContentColor: Color,
    headlineContentColor: Color,
    weekdayContentColor: Color,
    subheadContentColor: Color,
    navigationContentColor: Color,
    yearContentColor: Color,
    disabledYearContentColor: Color,
    currentYearContentColor: Color,
    selectedYearContentColor: Color,
    disabledSelectedYearContentColor: Color,
    selectedYearContainerColor: Color,
    disabledSelectedYearContainerColor: Color,
    dayContentColor: Color,
    disabledDayContentColor: Color,
    selectedDayContentColor: Color,
    disabledSelectedDayContentColor: Color,
    selectedDayContainerColor: Color,
    disabledSelectedDayContainerColor: Color,
    todayContentColor: Color,
    todayDateBorderColor: Color,
    dayInSelectionRangeContainerColor: Color,
    dayInSelectionRangeContentColor: Color,
    dividerColor: Color,
    dateTextFieldColors: TextFieldColors
)

create an instance with arbitrary colors, see DatePickerDefaults.colors for the default implementation that follows Material specifications.

Cmn

Public functions

DatePickerColors
copy(
    containerColor: Color,
    titleContentColor: Color,
    headlineContentColor: Color,
    weekdayContentColor: Color,
    subheadContentColor: Color,
    navigationContentColor: Color,
    yearContentColor: Color,
    disabledYearContentColor: Color,
    currentYearContentColor: Color,
    selectedYearContentColor: Color,
    disabledSelectedYearContentColor: Color,
    selectedYearContainerColor: Color,
    disabledSelectedYearContainerColor: Color,
    dayContentColor: Color,
    disabledDayContentColor: Color,
    selectedDayContentColor: Color,
    disabledSelectedDayContentColor: Color,
    selectedDayContainerColor: Color,
    disabledSelectedDayContainerColor: Color,
    todayContentColor: Color,
    todayDateBorderColor: Color,
    dayInSelectionRangeContainerColor: Color,
    dayInSelectionRangeContentColor: Color,
    dividerColor: Color,
    dateTextFieldColors: TextFieldColors?
)

Returns a copy of this DatePickerColors, optionally overriding some of the values.

Cmn
open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn

Public properties

Color

the color used for the date picker's background

Cmn
Color

the color used for the current year content when selecting a year

Cmn
TextFieldColors

the TextFieldColors defaults for the date text field when in DisplayMode.Input.

Cmn
Color

the color used for days content

Cmn
Color

the container color used for days that are within a date range selection

Cmn
Color

the content color used for days that are within a date range selection

Cmn
Color

the color used for disabled days content

Cmn
Color

the color used for a disabled selected day container

Cmn
Color

the color used for disabled selected days content

Cmn
Color

the color used for a disabled selected year item container

Cmn
Color

the color used for a disabled selected year item content

Cmn
Color

the color used for a disabled year item content

Cmn
Color

the color used for the dividers used at the date pickers

Cmn
Color

the color used for the date picker's headline

Cmn
Color

the content color used for the year selection menu button and the months arrow navigation when displayed at a DatePicker.

Cmn
Color

the color used for a selected day container

Cmn
Color

the color used for selected days content

Cmn
Color

the color used for a selected year item container

Cmn
Color

the color used for a selected year item content

Cmn
Color

the color used for the month and year subhead labels that appear when months are displayed at a DateRangePicker.

Cmn
Color

the color used for the date picker's title

Cmn
Color

the color used for the day that marks the current date

Cmn
Color

the color used for the border of the day that marks the current date

Cmn
Color

the color used for the weekday letters

Cmn
Color

the color used for a year item content

Cmn

Public constructors

DatePickerColors

DatePickerColors(
    containerColor: Color,
    titleContentColor: Color,
    headlineContentColor: Color,
    weekdayContentColor: Color,
    subheadContentColor: Color,
    navigationContentColor: Color,
    yearContentColor: Color,
    disabledYearContentColor: Color,
    currentYearContentColor: Color,
    selectedYearContentColor: Color,
    disabledSelectedYearContentColor: Color,
    selectedYearContainerColor: Color,
    disabledSelectedYearContainerColor: Color,
    dayContentColor: Color,
    disabledDayContentColor: Color,
    selectedDayContentColor: Color,
    disabledSelectedDayContentColor: Color,
    selectedDayContainerColor: Color,
    disabledSelectedDayContainerColor: Color,
    todayContentColor: Color,
    todayDateBorderColor: Color,
    dayInSelectionRangeContainerColor: Color,
    dayInSelectionRangeContentColor: Color,
    dividerColor: Color,
    dateTextFieldColors: TextFieldColors
)

create an instance with arbitrary colors, see DatePickerDefaults.colors for the default implementation that follows Material specifications.

Parameters
containerColor: Color

the color used for the date picker's background

titleContentColor: Color

the color used for the date picker's title

headlineContentColor: Color

the color used for the date picker's headline

weekdayContentColor: Color

the color used for the weekday letters

subheadContentColor: Color

the color used for the month and year subhead labels that appear when months are displayed at a DateRangePicker.

navigationContentColor: Color

the content color used for the year selection menu button and the months arrow navigation when displayed at a DatePicker.

yearContentColor: Color

the color used for a year item content

disabledYearContentColor: Color

the color used for a disabled year item content

currentYearContentColor: Color

the color used for the current year content when selecting a year

selectedYearContentColor: Color

the color used for a selected year item content

disabledSelectedYearContentColor: Color

the color used for a disabled selected year item content

selectedYearContainerColor: Color

the color used for a selected year item container

disabledSelectedYearContainerColor: Color

the color used for a disabled selected year item container

dayContentColor: Color

the color used for days content

disabledDayContentColor: Color

the color used for disabled days content

selectedDayContentColor: Color

the color used for selected days content

disabledSelectedDayContentColor: Color

the color used for disabled selected days content

selectedDayContainerColor: Color

the color used for a selected day container

disabledSelectedDayContainerColor: Color

the color used for a disabled selected day container

todayContentColor: Color

the color used for the day that marks the current date

todayDateBorderColor: Color

the color used for the border of the day that marks the current date

dayInSelectionRangeContainerColor: Color

the container color used for days that are within a date range selection

dayInSelectionRangeContentColor: Color

the content color used for days that are within a date range selection

dividerColor: Color

the color used for the dividers used at the date pickers

dateTextFieldColors: TextFieldColors

the TextFieldColors defaults for the date text field when in DisplayMode.Input. See OutlinedTextFieldDefaults.colors.

Public functions

copy

fun copy(
    containerColor: Color = this.containerColor,
    titleContentColor: Color = this.titleContentColor,
    headlineContentColor: Color = this.headlineContentColor,
    weekdayContentColor: Color = this.weekdayContentColor,
    subheadContentColor: Color = this.subheadContentColor,
    navigationContentColor: Color = this.navigationContentColor,
    yearContentColor: Color = this.yearContentColor,
    disabledYearContentColor: Color = this.disabledYearContentColor,
    currentYearContentColor: Color = this.currentYearContentColor,
    selectedYearContentColor: Color = this.selectedYearContentColor,
    disabledSelectedYearContentColor: Color = this.disabledSelectedYearContentColor,
    selectedYearContainerColor: Color = this.selectedYearContainerColor,
    disabledSelectedYearContainerColor: Color = this.disabledSelectedYearContainerColor,
    dayContentColor: Color = this.dayContentColor,
    disabledDayContentColor: Color = this.disabledDayContentColor,
    selectedDayContentColor: Color = this.selectedDayContentColor,
    disabledSelectedDayContentColor: Color = this.disabledSelectedDayContentColor,
    selectedDayContainerColor: Color = this.selectedDayContainerColor,
    disabledSelectedDayContainerColor: Color = this.disabledSelectedDayContainerColor,
    todayContentColor: Color = this.todayContentColor,
    todayDateBorderColor: Color = this.todayDateBorderColor,
    dayInSelectionRangeContainerColor: Color = this.dayInSelectionRangeContainerColor,
    dayInSelectionRangeContentColor: Color = this.dayInSelectionRangeContentColor,
    dividerColor: Color = this.dividerColor,
    dateTextFieldColors: TextFieldColors? = this.dateTextFieldColors
): DatePickerColors

Returns a copy of this DatePickerColors, optionally overriding some of the values. This uses the Color.Unspecified to mean “use the value from the source” // For dateTextFieldColors use null to mean "use the value from source"

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

containerColor

val containerColorColor

the color used for the date picker's background

currentYearContentColor

val currentYearContentColorColor

the color used for the current year content when selecting a year

dateTextFieldColors

val dateTextFieldColorsTextFieldColors

the TextFieldColors defaults for the date text field when in DisplayMode.Input. See OutlinedTextFieldDefaults.colors.

dayContentColor

val dayContentColorColor

the color used for days content

dayInSelectionRangeContainerColor

val dayInSelectionRangeContainerColorColor

the container color used for days that are within a date range selection

dayInSelectionRangeContentColor

val dayInSelectionRangeContentColorColor

the content color used for days that are within a date range selection

disabledDayContentColor

val disabledDayContentColorColor

the color used for disabled days content

disabledSelectedDayContainerColor

val disabledSelectedDayContainerColorColor

the color used for a disabled selected day container

disabledSelectedDayContentColor

val disabledSelectedDayContentColorColor

the color used for disabled selected days content

disabledSelectedYearContainerColor

val disabledSelectedYearContainerColorColor

the color used for a disabled selected year item container

disabledSelectedYearContentColor

val disabledSelectedYearContentColorColor

the color used for a disabled selected year item content

disabledYearContentColor

val disabledYearContentColorColor

the color used for a disabled year item content

dividerColor

val dividerColorColor

the color used for the dividers used at the date pickers

headlineContentColor

val headlineContentColorColor

the color used for the date picker's headline

val navigationContentColorColor

the content color used for the year selection menu button and the months arrow navigation when displayed at a DatePicker.

selectedDayContainerColor

val selectedDayContainerColorColor

the color used for a selected day container

selectedDayContentColor

val selectedDayContentColorColor

the color used for selected days content

selectedYearContainerColor

val selectedYearContainerColorColor

the color used for a selected year item container

selectedYearContentColor

val selectedYearContentColorColor

the color used for a selected year item content

subheadContentColor

val subheadContentColorColor

the color used for the month and year subhead labels that appear when months are displayed at a DateRangePicker.

titleContentColor

val titleContentColorColor

the color used for the date picker's title

todayContentColor

val todayContentColorColor

the color used for the day that marks the current date

todayDateBorderColor

val todayDateBorderColorColor

the color used for the border of the day that marks the current date

weekdayContentColor

val weekdayContentColorColor

the color used for the weekday letters

yearContentColor

val yearContentColorColor

the color used for a year item content