Bug 484391 - Number 4 is slightly wider than other numbers, causing Digital Clock's width to change slightly as the time changes
Summary: Number 4 is slightly wider than other numbers, causing Digital Clock's width ...
Status: REPORTED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Digital Clock widget (show other bugs)
Version: 6.0.2
Platform: Arch Linux Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 492427 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-03-24 15:56 UTC by DeKay
Modified: 2024-11-12 22:54 UTC (History)
2 users (show)

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


Attachments
Applet Layout (39.41 KB, image/png)
2024-03-24 15:56 UTC, DeKay
Details
attachment-1294797-0.html (1.13 KB, text/html)
2024-03-25 15:11 UTC, Tammes Burghard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description DeKay 2024-03-24 15:56:11 UTC
Created attachment 167704 [details]
Applet Layout

SUMMARY

The clock does not use a fixed width font nor does the size it takes up fixed. As a result, the space it takes up changes every second. If it is on the right side of a bottom panel, the applet icons in the system tray will jitter back and forth as the seconds tick by.  Once you see it, you can't unsee it and it is quite annoying. See attachment for my current layout.

It seems at some point that the clock was set to a fixed width in KDE5. This fix should be brought back to KDE6.
https://invent.kde.org/plasma/plasma-workspace/-/commit/e7f09ba1eb976c4f282145016d34fe87de515a25

STEPS TO REPRODUCE
1. Add digital clock to the right of the system tray sitting at the bottom of the screen
2. Set clock to display seconds

OBSERVED RESULT
Applet icons in the System tray will jitter back and forth. Especially noticable when seconds tick over from 0 to 1.

EXPECTED RESULT
The time changing should not cause the applet icons next to it to move.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.0.2
KDE Frameworks Version: 24.02.0
Qt Version: 6.6.2.4
Comment 1 Tammes Burghard 2024-03-24 17:11:01 UTC
I can confirm that and it seems like only the 4 is one pixel wider than all the other numbers.
Comment 2 DeKay 2024-03-25 14:50:47 UTC
(In reply to Tammes Burghard from comment #1)
> I can confirm that and it seems like only the 4 is one pixel wider than all
> the other numbers.

The bounce between 0 -> 1 -> 2 is especially noticable to me.  But it bounces between other numbers too, like 7 -> 8.  I'm using the Inter font BTW.
Comment 3 Tammes Burghard 2024-03-25 15:11:41 UTC
Created attachment 167745 [details]
attachment-1294797-0.html

Ah then its based in the font. Yeah makes sense. I am using Noto Sans (whatever the default is).

Am 25. März 2024 15:50:47 MEZ schrieb DeKay <bugzilla_noreply@kde.org>:
>https://bugs.kde.org/show_bug.cgi?id=484391
>
>--- Comment #2 from DeKay <darrylkacher@gmail.com> ---
>(In reply to Tammes Burghard from comment #1)
>> I can confirm that and it seems like only the 4 is one pixel wider than all
>> the other numbers.
>
>The bounce between 0 -> 1 -> 2 is especially noticable to me.  But it bounces
>between other numbers too, like 7 -> 8.  I'm using the Inter font BTW.
>
>-- 
>You are receiving this mail because:
>You are on the CC list for the bug.
Comment 4 Nate Graham 2024-09-16 13:26:16 UTC
*** Bug 492427 has been marked as a duplicate of this bug. ***
Comment 5 Nate Graham 2024-09-17 13:55:28 UTC
I expect that this is fixed for Plasma 6.2 where the clock now requests fixed-width numerals from the font if it has them. I can't reproduce it there. So let's call it fixed. If however you still encounter the issue after upgrading to Plasma 6.2, then I guess it's another issue, so go ahead and re-open the ticket. Thanks a lot!
Comment 6 kammah 2024-11-10 03:19:51 UTC
I'm now on:
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2

and the problem is not solved. When there's no other app opened the problem is barely visible, but if more apps are opened the status bar becomes more crowded with buttons and the problem becomes gradually more noticeable.
Comment 7 kammah 2024-11-12 00:14:21 UTC
I've solved the problem myself.
Increasing the height of the panel from 32 to 34 makes the clock appear a little bigger but somehow suppresses the problem.

I forgot what the status of the issue was before I reopened it so I'll leave it reopened. Please feel free to change the status.
Comment 8 Nate Graham 2024-11-12 15:56:40 UTC
I cannot reproduce this issue in Plasma 6.2 or git master with a 32px tall panel crowded with stuff. Please attach a screen recording that shows it happening. It might be easier to show that if you make the Digital Clock show seconds; then a 4 will appear at least every 10 seconds.
Comment 9 kammah 2024-11-12 18:31:48 UTC
I attached a screen recording about two months ago in bug 492427 which is marked as a duplicate of this bug. Specifically this attachment: https://bugs.kde.org/attachment.cgi?id=173354. I'm not going to provide a new one because that doesn't make sense.
As I mentioned above I found a solution which works for me so this is probably my last contribution to this bug report.
Comment 10 Nate Graham 2024-11-12 22:54:26 UTC
Right, sorry I forgot. Unfortunately I simply cannot reproduce the issue with current git master in any of the ways shown.