Skip to main content

Module recipe_calendar_style

Module recipe_calendar_style 

Source
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 OnAccent when 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§

CalendarRecipe
Recipe dimensions for RecipeCalendarStyle.
RecipeCalendarStyle
Default CalendarStyle shipped 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 MonthsGrid and YearsGrid zoom cells.