Skip to content

Added calendar widget#721

Open
trevarj wants to merge 1 commit intoErikReider:mainfrom
trevarj:calendar-widget
Open

Added calendar widget#721
trevarj wants to merge 1 commit intoErikReider:mainfrom
trevarj:calendar-widget

Conversation

@trevarj
Copy link
Copy Markdown

@trevarj trevarj commented Apr 1, 2026

The widget is an embedded gtk4 calendar which can be styled as such.

Written with the assistance of Qwen Code.


This is good enough for me to use on my fork, but I don't have enough Vala or CSS knowledge to go any further.

Going to leave it here in case anyone wants to clean it up or offer some tips.

I think there is probably room for improvement with getting the GTK Calendar widget CSS to be accessible.

@trevarj
Copy link
Copy Markdown
Author

trevarj commented Apr 1, 2026

Closes #277 (see screenshot there)

Copy link
Copy Markdown
Owner

@ErikReider ErikReider left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few nits, looks good overall though :)

What's the use case for this? I don't think that the calendar widget integrates with the systems calendar to display events and such, so is it just for viewing the dates/week number?

Could you also provide a screenshot of how it looks with the day and date labels visible?

Comment thread src/controlCenter/widgets/calendar/calendar.vala Outdated
Comment thread src/controlCenter/widgets/calendar/calendar.vala Outdated
Comment thread src/controlCenter/widgets/calendar/calendar.vala Outdated
Comment thread src/controlCenter/widgets/calendar/calendar.vala Outdated
Comment thread src/controlCenter/widgets/calendar/calendar.vala Outdated
Comment thread data/style/widgets/calendar.scss Outdated
@trevarj
Copy link
Copy Markdown
Author

trevarj commented Apr 5, 2026

Just a few nits, looks good overall though :)

Thanks for reviewing!

What's the use case for this? I don't think that the calendar widget integrates with the systems calendar to display events and such, so is it just for viewing the dates/week number?

As another user wrote on the issue, if you use waybar the calendar widget is pretty bad. This is just a replacement for that and for when you want to quickly look at a date or day.

Could you also provide a screenshot of how it looks with the day and date labels visible?

I actually went back to a previous version cause I was experiencing a bug on the latest where floating notification backgrounds are randomly not rendering correctly. I will get a screenshot once I solve that and upgrade again to my fork.

@trevarj trevarj force-pushed the calendar-widget branch from 3ecaaab to 03a5ea9 Compare May 1, 2026 17:05
@trevarj trevarj requested a review from ErikReider May 1, 2026 17:05
@trevarj trevarj marked this pull request as ready for review May 1, 2026 17:05
@trevarj trevarj force-pushed the calendar-widget branch from 03a5ea9 to e9ad245 Compare May 1, 2026 19:26
@trevarj
Copy link
Copy Markdown
Author

trevarj commented May 1, 2026

Had some time to make the PR feedback changes here and also fix up the SCSS, config options and added the man page doc.

The widget is an embedded gtk4 calendar which can be styled as such.

Written with the assistance of Qwen Code.
@trevarj trevarj force-pushed the calendar-widget branch from e9ad245 to 40a38b8 Compare May 1, 2026 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants