CalendarStyle

class CalendarStyle(val colors: CalendarDayColors, val shapes: CalendarDayShapes, val density: CalendarDensity = CalendarDensity.Comfortable, val cellBorderWidth: Dp = 0.dp, val cellBorderColor: Color = Color.Transparent, val selectedElevation: Dp = 0.dp)

A coordinated look for DefaultDay: colors, shapes and density plus an optional cell border and selected-day elevation.

A positive cellBorderWidth outlines every visible day's CalendarDayShapes.dayShape in cellBorderColor; a positive selectedElevation draws a shadow under the selected day's fill.

Build one with CalendarDefaults.style or a curated preset such as CalendarDefaults.roundedSquareStyle, CalendarDefaults.segmentedRangeStyle or CalendarDefaults.borderedCardStyle, and pass it to the DefaultDay overload that takes a style.

Constructors

Link copied to clipboard
constructor(colors: CalendarDayColors, shapes: CalendarDayShapes, density: CalendarDensity = CalendarDensity.Comfortable, cellBorderWidth: Dp = 0.dp, cellBorderColor: Color = Color.Transparent, selectedElevation: Dp = 0.dp)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard