Expand description
Default CalendarStyle impl driven by paint-recipe data.
RecipeCalendarStyle ports the IntUI calendar chrome exactly:
- Day cell — the per-state background fill (Selected → accent;
InRange →
SelectedInactive; otherwise transparent), an optional today-ring border, the reactive roving-focus ring, and a centered day-number label whose colour follows the fill state. - Zoom cell — selected/pressed/hover/transparent background
precedence + a centered month/year label whose colour flips to
OnAccentwhen selected. - Header — the 5-slot row: prev-double, prev, title (Expand’d to fill), next, next-double, with a small inter-button gap.
Calendar-specific layout numbers (cell size / gap, header height,
ring widths, etc.) live as pub consts on this module. calendar.rs
reads them directly when it needs sizing data outside the cell chrome
(weekday row, week-number column, outer padding, mode-switcher
footprint).
Structs§
- Calendar
Recipe - Recipe dimensions for
RecipeCalendarStyle. - Recipe
Calendar Style - Default
CalendarStyleshipped with Teksilo.
Constants§
- CALENDAR_
CELL_ GAP - Gap between day cells in both axes.
- CALENDAR_
CELL_ RADIUS - Visible day-cell content radius (selection fill).
- CALENDAR_
CELL_ SIZE - Side length of each day cell (square cells).
- CALENDAR_
HEADER_ GAP - Horizontal gap between the five header buttons.
- CALENDAR_
HEADER_ HEIGHT - Height of the navigation header row (prev / label / next).
- CALENDAR_
NAV_ ARROW_ RADIUS - Header nav-arrow corner radius.
- CALENDAR_
NAV_ ARROW_ SIZE - Header nav-arrow button footprint.
- CALENDAR_
NAV_ ICON_ SIZE - Edge length of header navigation arrow icons.
- CALENDAR_
OUTER_ PADDING - Outer padding inside the calendar’s framed surface.
- CALENDAR_
SECTION_ GAP - Vertical gap between header / weekday row / day grid / footer.
- CALENDAR_
TODAY_ RING_ WIDTH - Stroke width of the today ring.
- CALENDAR_
WEEKDAY_ ROW_ HEIGHT - Height of the weekday-name row.
- CALENDAR_
WEEK_ NUMBER_ COLUMN_ WIDTH - Width of the optional week-number column.
- CALENDAR_
ZOOM_ CELL_ RADIUS - Cell corner radius shared by
MonthsGridandYearsGridzoom cells.