serenity/Userland
James Magahern 4041848caa ClockWidget: Left-align clock and center based on ideal width
I personally find it very distracting when the clock continuously
shifts around as seconds tick. Because we're not using a monospace
font for the clock, this is to be expected since each number has a
different typographic width.

However, a tradeoff can be made to make this slightly less distracting.
Instead of _perfectly_ centering the time string for every given
possible time, we can center it once based on a constant measurement
and render the rest of the string as left-aligned.

The advantage is that the clock no longer shifts around anymore while
seconds tick. The disadvantage is that the time may sometimes be not
perfectly centered by a pixel or two for certain numbers. Personally,
I find the tradeoff well worth it, and I don't think I would even
notice the imperfect centering unless I was specifically looking for
it and watching it for a long time.
2021-10-11 10:15:34 +02:00
..
Applets ResourceGraph: Use /proc/stat instead of /proc/all for CPU usage stats 2021-10-07 21:09:38 +02:00
Applications FileManager: Listen for changes to Desktop wallpaper in config 2021-10-10 01:15:34 -07:00
Demos
DevTools
DynamicLoader
Games
Libraries LibWeb: Consider empty fragments the same as whitespace in LineBox 2021-10-11 09:51:58 +02:00
Services ClockWidget: Left-align clock and center based on ideal width 2021-10-11 10:15:34 +02:00
Shell Shell: Raise an error if an execute node ends up trying to run nothing 2021-10-11 10:56:01 +03:30
Utilities Manpages+markdown-checker: Permit only specific missing files 2021-10-10 15:18:55 -07:00
CMakeLists.txt