Bug 481918

Summary: KTeaTime steeping progress indicator is rendered incorrectly (too big)
Product: [Applications] kteatime Reporter: Jure Repinc <jlp>
Component: generalAssignee: Stefan Böhmann <kde>
Status: RESOLVED FIXED    
Severity: normal CC: materka, nate
Priority: NOR Keywords: qt6
Version First Reported In: 24.02.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=481917
Latest Commit: Version Fixed/Implemented In: 25.08.0
Sentry Crash Report:
Attachments: KTeaTime progress indicator is visible in the right half of the picture, bottom left corner

Description Jure Repinc 2024-02-28 08:48:43 UTC
Created attachment 166150 [details]
KTeaTime progress indicator is visible in the right half of the picture, bottom left corner

SUMMARY
When a tea is steeping in KTeaTime there is a progress indicator (like a small piechart) being shown over the system tray icon. But it has the incorrect size, it is too big and much of it is cut of.


STEPS TO REPRODUCE
1. Start KTeaTime
2. Select a tea from the context menu of the tray icon so the steeping begins

OBSERVED RESULT
Steeping progress indicator is too big and cut of

EXPECTED RESULT
Steeping progress indicator should be visible fully

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20240225
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.6-1-default (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 7600 6-Core Processor
Memory: 31.1 GiB of RAM
Graphics Processor: AMD Radeon RX 480 Graphics
Comment 1 Nate Graham 2024-02-29 18:55:05 UTC
Aha, this confirms my theory that KTeaTime is rasterizing the vector icon and thereby braking its color-changeability. It has to do that to be able to overlay this badge on top of it--which apparently it does wrong. Both of those need to be fixed in KTeaTime.
Comment 2 Bug Janitor Service 2025-04-25 13:35:11 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/kteatime/-/merge_requests/24
Comment 3 Fabian Vogt 2025-04-30 08:14:59 UTC
Git commit 641ca7e6150cbc8eef630367da2ac72f26d0b610 by Fabian Vogt.
Committed on 28/04/2025 at 11:32.
Pushed by fvogt into branch 'master'.

Port to KStatusNotifierItem

Using SNI instead of QSystemTrayIcon allows to pass icon names and pixmaps
for the main icon and overlay in combination. Make use of that functionality
to support themes better.
Related: bug 481917

M  +1    -0    .kde-ci.yml
M  +1    -0    CMakeLists.txt
M  +1    -0    src/CMakeLists.txt
M  +20   -21   src/toplevel.cpp
M  +3    -3    src/toplevel.h

https://invent.kde.org/utilities/kteatime/-/commit/641ca7e6150cbc8eef630367da2ac72f26d0b610