DatePickerColors
-
Cmn
class DatePickerColors
Represents the colors used by the date picker.
Summary
Public constructors |
|
|---|---|
DatePickerColors(create an instance with arbitrary colors, see |
Cmn
|
Public functions |
||
|---|---|---|
DatePickerColors |
copy(Returns a copy of this DatePickerColors, optionally overriding some of the values. |
Cmn
|
open operator Boolean |
Cmn
|
|
open Int |
hashCode() |
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 |
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 |
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 |
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 |
navigationContentColor: Color |
the content color used for the year selection menu button and the months arrow navigation when displayed at a |
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 |
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"
Public properties
currentYearContentColor
val currentYearContentColor: Color
the color used for the current year content when selecting a year
dateTextFieldColors
val dateTextFieldColors: TextFieldColors
the TextFieldColors defaults for the date text field when in DisplayMode.Input. See OutlinedTextFieldDefaults.colors.
dayInSelectionRangeContainerColor
val dayInSelectionRangeContainerColor: Color
the container color used for days that are within a date range selection
dayInSelectionRangeContentColor
val dayInSelectionRangeContentColor: Color
the content color used for days that are within a date range selection
disabledSelectedDayContainerColor
val disabledSelectedDayContainerColor: Color
the color used for a disabled selected day container
disabledSelectedDayContentColor
val disabledSelectedDayContentColor: Color
the color used for disabled selected days content
disabledSelectedYearContainerColor
val disabledSelectedYearContainerColor: Color
the color used for a disabled selected year item container
disabledSelectedYearContentColor
val disabledSelectedYearContentColor: Color
the color used for a disabled selected year item content
disabledYearContentColor
val disabledYearContentColor: Color
the color used for a disabled year item content
navigationContentColor
val navigationContentColor: Color
the content color used for the year selection menu button and the months arrow navigation when displayed at a DatePicker.
selectedDayContainerColor
val selectedDayContainerColor: Color
the color used for a selected day container
selectedYearContainerColor
val selectedYearContainerColor: Color
the color used for a selected year item container
selectedYearContentColor
val selectedYearContentColor: Color
the color used for a selected year item content
subheadContentColor
val subheadContentColor: Color
the color used for the month and year subhead labels that appear when months are displayed at a DateRangePicker.
todayContentColor
val todayContentColor: Color
the color used for the day that marks the current date
todayDateBorderColor
val todayDateBorderColor: Color
the color used for the border of the day that marks the current date