Bug 510060

Summary: Digital Clock manually set font changes size depending on screen
Product: [Plasma] plasmashell Reporter: Jackson <bugs>
Component: Digital Clock widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: minor CC: nate
Priority: NOR Keywords: multiscreen
Version First Reported In: 6.3.4   
Target Milestone: 1.0   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot on external monitor.
Screenshot on the laptop display.

Description Jackson 2025-09-29 16:07:23 UTC
Created attachment 185363 [details]
Screenshot on external monitor.

SUMMARY
The Digital Clock widget allows the user to manually chose the font size it uses. If set, however, it changes in size depending on the screen that it is displayed on instead of remaining consistent.

STEPS TO REPRODUCE
1. Set a Digital Clock widget onto a panel.
2. Open the Digital Clock Settings and, under "Appearance," select the "Text display" to "Manual."
3. Change the screen the panel is displayed upon (e.g., switch from using an external monitor to a laptop display or vice versa).

OBSERVED RESULT
The font size does not remain consistent, instead it changes and the proportional relationship between the text and the panel changes.

EXPECTED RESULT
The font size should remain the same and the proportional relationship between the text and panel should remain the same.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 25.04
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.3
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Two screenshots are attached of the default Kubuntu panel with the digital clock font set manually. The first is the panel being displayed on an external screen (a resolution of 2560x1440), the second the laptop (1920x1200). Note that scaling is set to 100% on both displays. All other elements, text and icons, in the panel remain consistent on both screens: it is just the digital clock font size that changes.

Since I find the automatic font setting to be much too big, the manual setting is useful, but due to this bug it is either the right size on my laptop screen but too small on the external monitor, or nice on the external one but too small on the laptop.
Comment 1 Jackson 2025-09-29 16:07:49 UTC
Created attachment 185364 [details]
Screenshot on the laptop display.
Comment 2 Nate Graham 2025-09-29 19:47:17 UTC
Interesting issue.

Does that panel have any Margins Separator widgets on it? They're invisible, so you'll have to find them in Edit Mode.
Comment 3 Jackson 2025-09-30 16:10:20 UTC
(In reply to Nate Graham from comment #2)
> Interesting issue.
> 
> Does that panel have any Margins Separator widgets on it? They're invisible,
> so you'll have to find them in Edit Mode.

The default Kubuntu panel does, but the same issue happens even without. I made a new empty panel and only added the Digital Clock on it: the problem was still visible. Also checked to see if it happens in X11, it does.
Comment 4 Nate Graham 2025-10-01 17:02:18 UTC
How odd.
Comment 5 Jackson 2025-10-04 15:55:59 UTC
I did reproduce the same issue on the Steam Deck's desktop mode too (KDE Plasma Version: 6.2.5; KDE Frameworks Version: 6.9.0; Qt Version: 6.8.1; Graphics Platform: X1). Just wanted to make sure it wasn't an issue unique to Kubuntu.