Bug 490252 - Spacing between time and date is inconsistent with typographic space, especially when using a monospace font
Summary: Spacing between time and date is inconsistent with typographic space, especia...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Digital Clock widget (show other bugs)
Version: master
Platform: Arch Linux Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-14 04:16 UTC by mail
Modified: 2024-07-24 18:13 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.2.0
Sentry Crash Report:


Attachments
Time widget spacing illustration by Reddit user /u/FypeWaqer (123.34 KB, image/png)
2024-07-14 04:16 UTC, mail
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mail 2024-07-14 04:16:55 UTC
Created attachment 171647 [details]
Time widget spacing illustration by Reddit user /u/FypeWaqer

SUMMARY
In one line mode when date is shown, the spacing between the date and time looks off when using a monospace font, especially if there is a space in the date format.

Because the widget is visually just text, the expectation is that the spacing would be the same as a space.

STEPS TO REPRODUCE
1. Add a new horizontal date widget
2. Check "show date" and always put it beside time
3. Set date format to something with a space, like "dd MMM" (14 June)
4. Observe the gap between date and time is slightly different from the size of the space character
5. Use a monospace font
6. Observe how the difference is even more pronounced

OBSERVED RESULT
Gap between date and time is different from the width of a space character

EXPECTED RESULT
Gap between date and time is the same as a space character

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.6.38-1-lts
KDE Plasma Version: 6.2 (master branch)
  plasma-workspace: commit 18679ce09b
  plasma-desktop: commit fdd44ea75
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
First reported by Reddit user /u/FypeWaqer in the KDE subreddit: https://www.reddit.com/r/kde/comments/1e2perj/time_widget_spacing_is_off_for_monospace_fonts/
Comment 1 Bug Janitor Service 2024-07-14 05:42:19 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4519
Comment 2 mail 2024-07-14 15:52:36 UTC
Git commit b2202410fcfa9147f646f10c5a60e3f7a9b28f0c by Kisaragi Hiu.
Committed on 14/07/2024 at 07:26.
Pushed by ngraham into branch 'master'.

applets/digital-clock: make time/date spacing be like typographic space

Because the time/date have the same text style, to the user the date and
time appear to be the same text, so it's surprising to have the distance
between them be a spacing that's more suitable for two separate applets.

M  +5    -1    applets/digital-clock/package/contents/ui/DigitalClock.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/b2202410fcfa9147f646f10c5a60e3f7a9b28f0c