Bug 504928

Summary: Clock in not-super-thick panel gets covered by timezone tooltip with "show timezone" setting enabled
Product: [Plasma] plasmashell Reporter: Jan Bidler <janbidler00>
Component: Analog Clock widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: ASSIGNED ---    
Severity: normal CC: bshah, emilsahel, kde, nate
Priority: NOR Keywords: junior-jobs
Version First Reported In: 6.3.5   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot of issue.

Description Jan Bidler 2025-05-28 17:13:23 UTC
SUMMARY
If the clock widget is in a panel, and the setting "show timezone" is enabled, then the icon in the panel will be useless; it will show the timezone button cut-out and nothing more

STEPS TO REPRODUCE
1. Add an analog clock widget to the panel
2. Enable the "show timezone" setting

OBSERVED RESULT
The icon will show the timezone button cut-out (in my case "Europe/Berlin")

EXPECTED RESULT
Either the setting having no effect when its in the panel, or the button being next to the clock icon

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.14.6-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 1600 Six-Core Processor
Memory: 15.6 GiB of RAM
Graphics Processor: AMD Radeon RX 570 Series
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: B450M DS3H
Comment 1 Kai Uwe Broulik 2025-05-28 17:17:11 UTC
We probably just want to hide this option for the panel.
Comment 2 Nate Graham 2025-05-28 18:16:49 UTC
This appears to be a display bug; the timezone isn't supposed to cover up the clock! I can reproduce the issue.
Comment 3 Emil P 2025-07-21 18:17:00 UTC
Created attachment 183400 [details]
Screenshot of issue.

Okay, this is very interesting. I think what happens is that the timezone shoves the actual clock out of the way; the clock is still somewhat visible, but inverted. Maybe because the height gets subtracted into a negative number, causing a weird reflection? I'll take a look and try to patch this, but do bear with me as I am new.
Comment 4 Emil P 2025-07-27 05:08:59 UTC
Wow, this bug is quite stubborn. I'm having a lot of trouble patching it. If anyone is willing to help a newcomer, please reach out!
Comment 5 Bug Janitor Service 2025-07-28 01:34:07 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5710