Email or username:

Password:

Forgot your password?
Philip Withnall

The gnome-control-center panel I’ve been working on for the last many weeks is now ready for review, including a new chart widget for showing time spent using the computer screen (so you have some visibility into your compute use habits).

Glad to finally have this off my plate and on its way to being reviewed and hopefully merged.

#GNOME #DigitalWellbeing

5 comments
Philip Withnall

The chart widget is the most complex widget I’ve ever written, coming in at roughly 4000 lines of code.

Turns out that combining rendering for large and small screens, CSS styling, dark mode, high contrast mode, an entirely visual layout of data, accessibility requirements for the visually impaired, RTL *and* a date-based time axis makes things quite complex. Dates especially.

There are going to be bugs in it.

Sergey Bugaev

@pwithnall but does it do whf/hfw measurements in a consistent way 🙃

Philip Withnall

@bugaevc 👀

It kind of skirts round that by having various parts of the chart have a fixed minimum size, so it kind of has a fixed size request (except it doesn’t; it distributes additional width appropriately).

Sergey Bugaev

@pwithnall I noticed you've marked constructors of the various widgets as returning (transfer full). Is this an oversight or intentional?

Philip Withnall

@bugaevc I guess you mean they should be (transfer floating). If so, probably an oversight. But review comments go on GitLab rather than on Mastodon pls ;)

Go Up