Skip to content

Switch calendars to Sunday-first layout#677

Merged
multiplex55 merged 1 commit intomasterfrom
codex/update-calendar-popover-to-sunday-start
Jan 13, 2026
Merged

Switch calendars to Sunday-first layout#677
multiplex55 merged 1 commit intomasterfrom
codex/update-calendar-popover-to-sunday-start

Conversation

@multiplex55
Copy link
Copy Markdown
Owner

Motivation

  • Align calendar month grids to a Sunday-first convention so months that start on Sunday appear in the first column.
  • Make the popover and dashboard calendar widgets display weekdays in the same order for consistency.
  • Ensure visual header labels match the offset used to populate the grid.

Description

  • Replaced month.weekday().num_days_from_monday() with month.weekday().num_days_from_sunday() in src/gui/calendar_popover.rs and src/dashboard/widgets/calendar.rs to compute the grid offset.
  • Reordered weekday header arrays to Sun, Mon, Tue, Wed, Thu, Fri, Sat in both src/gui/calendar_popover.rs and src/dashboard/widgets/calendar.rs.
  • Left the existing grid population logic (42-cell grid, spacing, selectable labels and markers) unchanged so behavior aside from ordering remains the same.

Testing

  • No automated tests were run on these changes.

Codex Task

@multiplex55 multiplex55 merged commit 8c57164 into master Jan 13, 2026
1 check passed
@multiplex55 multiplex55 deleted the codex/update-calendar-popover-to-sunday-start branch January 14, 2026 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant