Bug 484888 - With fractional scale factor, Panel Icons are sometimes blurry when displayed on a floating panel (floating or de-floated) until hovered or the panel is changed in thickness
Summary: With fractional scale factor, Panel Icons are sometimes blurry when displayed...
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kirigami
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 6.10.0
Platform: Manjaro Linux
: HI normal
Target Milestone: 1.0
Assignee: kdelibs bugs
URL:
Keywords: regression
: 485740 487137 487809 496231 496237 498833 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-04-01 20:08 UTC by Driglu4it
Modified: 2025-02-08 03:04 UTC (History)
27 users (show)

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


Attachments
Radio as Kirigami.Icon. Translation icon as KSvg.SvgItem (7.69 KB, image/png)
2024-04-01 20:08 UTC, Driglu4it
Details
Both icons (Radio and Tanslation) - Kirigami.Icon (7.56 KB, image/png)
2024-04-01 20:43 UTC, Driglu4it
Details
Video of bug (184.42 KB, video/mp4)
2024-10-22 18:45 UTC, MBR
Details
Blurry Clipboard. (92.43 KB, video/mp4)
2024-12-08 21:14 UTC, Fernando M. Muniz
Details
Blury icon in app tray (1.30 MB, video/webm)
2024-12-11 20:11 UTC, xniksysx
Details
Making system tray icons blurry with click-hold-drag (77.26 KB, video/webm)
2025-01-15 22:51 UTC, Timothy B
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Driglu4it 2024-04-01 20:08:20 UTC
Created attachment 168035 [details]
Radio as Kirigami.Icon. 
Translation icon as KSvg.SvgItem

Kirigami.Icon is blurry when used as a CompactRepresentation in a plasmoid.
When changing the height/width of the panel, the icon becomes clear again (but only until plasmashell is restarted.
At the same time, KSvg.SvgItem displayed normally.
In the screenshot there is a radio icon from the theme (Kirigami.Icon) and a translator icon from local URL (KSvg.SvgItem).


Operating System: Manjaro Linux 
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.3
Kernel Version: 6.8.2-2-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ i5-10500H CPU @ 2.50GHz
Memory: 15.4 ГиБ of RAM
Graphics Processor: Mesa Intel® UHD Graphics
Comment 1 Driglu4it 2024-04-01 20:43:00 UTC
Created attachment 168037 [details]
Both icons (Radio and Tanslation) - Kirigami.Icon
Comment 2 Driglu4it 2024-04-07 10:47:08 UTC
Apparently, any action that leads to redrawing of the icon helps (changing size or color) - the icon becomes clear, but only until plasmashell is restarted...
Comment 3 Ilya Bizyaev 2024-04-07 10:47:39 UTC
Tentatively marking as confirmed because of this Reddit thread (referencing this bug report):
https://www.reddit.com/r/kde/comments/1bxucfo/603_bug_icons_randomly_become_blurry/
Comment 4 Driglu4it 2024-04-07 13:26:24 UTC
After reading the Reddit thread, I confirm that this only happens with the floating panel.
Comment 5 Timothy B 2024-04-10 02:24:52 UTC
Can confirm this happening on all floating panels on EndeavourOS, which I switched from Manjaro very recently. What's also strange is when I switched between icon themes, some of the icons in both floating and non-floating panels wouldn't update until I hovered over each one.

I've never seen this happen on Manjaro with Plasma 6.0.2 nor on Plasma 5.27 in any distro. I first noticed this when I tested the Plasma 6 betas and release candidates on an Arch Linux VM, but I initially thought of it as some kind of issue related to display drivers and Qt 6.

Operating System: EndeavourOS
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.3
Graphics Platform: Wayland
Comment 6 fin-w 2024-04-11 23:20:57 UTC
I can confirm this happening on Arch with Plasma 6.0.3, from at least 6.0.1 and possibly also 6.0.0. I believe it depends on the size of the floating panel, since initially I wasn't seeing the slight resizing of icons, and then I changed the height of the horizontal panel and now all icons in the panel EXCEPT the time are blurry until i hover over them with the mouse.
Comment 7 rtk_7jsq 2024-04-12 10:31:51 UTC
I confirm, in my case, blurring on all icons until I swipe over them with the mouse.
Comment 8 fin-w 2024-04-15 23:43:27 UTC
I notice this issue is also happening with the icons on the buttons in the clipboard entry editing area, System Tray → Clipboard → Edit contents.
Comment 9 Nate Graham 2024-05-04 22:57:56 UTC
*** Bug 485740 has been marked as a duplicate of this bug. ***
Comment 10 Nate Graham 2024-05-23 14:03:27 UTC
*** Bug 487137 has been marked as a duplicate of this bug. ***
Comment 11 Nate Graham 2024-05-23 15:11:14 UTC
Can folks who are affected test https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2263 to see if it helps?
Comment 12 Niccolò Venerandi 2024-05-25 09:34:26 UTC
Git commit bdb54cb5fc880d14609f5bbc514d71f56e9165c7 by Niccolò Venerandi.
Committed on 25/05/2024 at 09:34.
Pushed by niccolove into branch 'master'.

Revert "Panel: don't round floating paddings to smoothen animation"

This reverts commit 8560cd25c2f4819b1dfa4532de29a35c55d0103e, since a non-integer panel position at startup (due to the panel floating animation) will render the panel icons blurry until they are re-drawn.

M  +4    -5    desktoppackage/contents/views/Panel.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/bdb54cb5fc880d14609f5bbc514d71f56e9165c7
Comment 13 Niccolò Venerandi 2024-05-25 09:34:44 UTC
Git commit 102cbe12a54ce82539d8abfc66b9105f666b0f10 by Niccolò Venerandi.
Committed on 25/05/2024 at 09:34.
Pushed by niccolove into branch 'Plasma/6.1'.

Revert "Panel: don't round floating paddings to smoothen animation"

This reverts commit 8560cd25c2f4819b1dfa4532de29a35c55d0103e, since a non-integer panel position at startup (due to the panel floating animation) will render the panel icons blurry until they are re-drawn.


(cherry picked from commit bdb54cb5fc880d14609f5bbc514d71f56e9165c7)

96fed9ec Revert "Panel: don't round floating paddings to smoothen animation"

M  +4    -5    desktoppackage/contents/views/Panel.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/102cbe12a54ce82539d8abfc66b9105f666b0f10
Comment 14 Niccolò Venerandi 2024-05-31 08:28:28 UTC
*** Bug 487809 has been marked as a duplicate of this bug. ***
Comment 15 gigastarcraft2 2024-08-11 10:23:44 UTC
Sometimes a notification icon is still blurry until you hover over it.
Comment 16 fin-w 2024-08-11 13:46:43 UTC
Yes, I confirm that on my system, the problem still hasn't gone away. I believe the supposed fix should be in 6.1.4? It's what I'm using now, so looks like there's more to the problem.

Operating System: Arch Linux 
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Kernel Version: 6.10.3-arch1-2 (64-bit)
Graphics Platform: Wayland
Comment 17 Serious Hoax 2024-10-12 19:40:36 UTC
Hi! Came here to say that it still happens after the latest Plasma 6.2 update. In fact, I actually started noticing it after updating to 6.2. I'm not sure if it was there for me on the previous build.

Operating System: Arch Linux 
KDE Plasma Version: 6.2.0
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.3
Kernel Version: 6.11.3-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × AMD Ryzen 5 3400G with Radeon Vega Graphics
Memory: 13.6 GiB of RAM
Graphics Processor: AMD Radeon Vega 11 Graphics
Comment 18 Nate Graham 2024-10-16 19:42:41 UTC
Can everyone who's still affected attach a new screen recording that shows it happening? Just so I know it's really the same issue and not a subtly different one. Thanks!
Comment 19 zzrakic 2024-10-16 20:36:41 UTC
I'm no longer affected by this bug.
Comment 20 Serious Hoax 2024-10-18 19:00:47 UTC
(In reply to Nate Graham from comment #18)
> Can everyone who's still affected attach a new screen recording that shows
> it happening? Just so I know it's really the same issue and not a subtly
> different one. Thanks!

I tried to do this by using KDE's Spectacle app to record screen but as soon I start recording the blur goes away. It doesn't want to be recorded, lol. The blur probably goes away due to the spectacle record icon that goes to the tray area when I start recording. It somehow makes the whole taskbar on focus which takes the blur away.

Basically, all the icons including pinned apps on the panel/taskbar appears to be a bit blurry. Like if you take a photo of an object that is not focused. As you put your mouse on the icons, they go away one by one. If you put your mouse on one, then only that one becomes clear.
Comment 21 Serious Hoax 2024-10-18 20:27:09 UTC
(In reply to Serious Hoax from comment #20)
> (In reply to Nate Graham from comment #18)
> > Can everyone who's still affected attach a new screen recording that shows
> > it happening? Just so I know it's really the same issue and not a subtly
> > different one. Thanks!
> 
> I tried to do this by using KDE's Spectacle app to record screen but as soon
> I start recording the blur goes away. It doesn't want to be recorded, lol.
> The blur probably goes away due to the spectacle record icon that goes to
> the tray area when I start recording. It somehow makes the whole taskbar on
> focus which takes the blur away.
> 
> Basically, all the icons including pinned apps on the panel/taskbar appears
> to be a bit blurry. Like if you take a photo of an object that is not
> focused. As you put your mouse on the icons, they go away one by one. If you
> put your mouse on one, then only that one becomes clear.
Here are two screenshots. 
One is blur, one is clear. The icons seem to move up a bit when they are clear.
Blur: https://imgbox.com/Rea4N6Dl
Clear: https://imgbox.com/iAUawTIp
Comment 22 Nate Graham 2024-10-22 17:15:48 UTC
That's very clear, thank you.
Comment 23 MBR 2024-10-22 18:45:55 UTC
Created attachment 175117 [details]
Video of bug

Another video of the bug
Comment 24 TraceyC 2024-10-22 19:52:55 UTC
Just as data points, I can't reproduce the problem on Plasma 6.1.5 or from git-master
I specifically pinned kitty to the floating taskbar, since the effect was most obvious with that icon in the screen shots.
Comment 25 Serious Hoax 2024-10-23 10:20:24 UTC
BTW, I'm facing the issue on Arch but not on openSUSE Tumbleweed. In Tumbleweed, floating panel is disabled by default and I didn't enable it.
Comment 26 Serious Hoax 2024-10-23 16:45:14 UTC
To add more context if it helps. I just loaded Fedora KDE ISO in VirtualBox for installing and this blurry icon effect was present there also. Mostly icons on the right side of the panel like volume and notification icons.
Comment 27 ba.r.ma.nhai.l.ey 2024-11-12 23:51:21 UTC
I also have this bug intermittently on Fedora 41, 6.2.3, Wayland, no scaling. I'm not sure if it's because of the floating panel, the microphone control icon sometimes became blurry just because of clicking on it.
Comment 28 Nate Graham 2024-11-14 01:11:27 UTC
*** Bug 496237 has been marked as a duplicate of this bug. ***
Comment 29 Nate Graham 2024-11-14 01:11:53 UTC
*** Bug 496231 has been marked as a duplicate of this bug. ***
Comment 30 Fernando M. Muniz 2024-12-03 03:34:50 UTC
The issue to me seems to be that the animation of the clipboard being clicked on is not always forced to be completed.
So by quickly clicking on it, or clicking and then moving the cursor away, the small clipboard from the middle of the animation becomes the default icon.
Comment 31 Fernando M. Muniz 2024-12-08 21:14:01 UTC
Created attachment 176449 [details]
Blurry Clipboard.

Kdenlive isn't rendering accurately to show how drastic this actually is. Bug 497213
Comment 32 xniksysx 2024-12-11 20:11:32 UTC
Created attachment 176532 [details]
Blury icon in app tray

Record video with this issue.
Comment 33 Timothy B 2024-12-11 20:51:17 UTC
(In reply to ba.r.ma.nhai.l.ey from comment #27)
> I also have this bug intermittently on Fedora 41, 6.2.3, Wayland, no
> scaling. I'm not sure if it's because of the floating panel, the microphone
> control icon sometimes became blurry just because of clicking on it.

I've been getting this too on both floating and regular panels, 100% scaling, and any animation speed. From what I'm seeing here, I suspect that this has to do with mouse interactions rather than fractional scaling.

Operating System: EndeavourOS
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.1
Graphics Platform: Wayland
Comment 34 Driglu4it 2024-12-12 05:22:40 UTC
(In reply to Timothy B from comment #33)
> (In reply to ba.r.ma.nhai.l.ey from comment #27)
> > I also have this bug intermittently on Fedora 41, 6.2.3, Wayland, no
> > scaling. I'm not sure if it's because of the floating panel, the microphone
> > control icon sometimes became blurry just because of clicking on it.
> 
> I've been getting this too on both floating and regular panels, 100%
> scaling, and any animation speed. From what I'm seeing here, I suspect that
> this has to do with mouse interactions rather than fractional scaling.
> 
> Operating System: EndeavourOS
> KDE Plasma Version: 6.2.4
> KDE Frameworks Version: 6.8.0
> Qt Version: 6.8.1
> Graphics Platform: Wayland

I confirm the bug (now also on the attached panel). If you open the context menu on the icon, it becomes blurry. Next, if you remove the mouse from the icon and close the context menu, the icon remains blurry until you point the mouse at it again.

Operating System: CachyOS Linux 
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.1
Kernel Version: 6.12.4-2-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ i5-10500H CPU @ 2.50GHz
Memory: 15.4 ГиБ of RAM
Graphics Processor: Mesa Intel® UHD Graphics
Comment 35 Driglu4it 2024-12-12 06:01:53 UTC
> I confirm the bug (now also on the attached panel). If you open the context
> menu on the icon, it becomes blurry. Next, if you remove the mouse from the
> icon and close the context menu, the icon remains blurry until you point the
> mouse at it again.
> 
> Operating System: CachyOS Linux 
> KDE Plasma Version: 6.2.4
> KDE Frameworks Version: 6.8.0
> Qt Version: 6.8.1
> Kernel Version: 6.12.4-2-cachyos (64-bit)
> Graphics Platform: Wayland
> Processors: 12 × Intel® Core™ i5-10500H CPU @ 2.50GHz
> Memory: 15.4 ГиБ of RAM
> Graphics Processor: Mesa Intel® UHD Graphics

However, not all icons behave like this (notification and telegram are blurred, the rest of my visible ones are not). At the same time, this behavior is only in the system tray, it is normal outside the tray.
Comment 36 Nate Graham 2025-01-15 03:34:38 UTC
Affected people, what is your panel height and scale factor? I'm genuinely unable to reproduce this at all with git master, and unsure if it's fixed or I just don't have the right combination of settings.

And you folks say that it comes back when plasmashell is restarted, right?
Comment 37 Nate Graham 2025-01-15 03:35:03 UTC
Oh and also, is it only ever seen with a horizontal or bottom panel? Or ever with a vertical panel?
Comment 38 Timothy B 2025-01-15 06:17:16 UTC
(In reply to Nate Graham from comment #36)
> Affected people, what is your panel height and scale factor? 
>
> And you folks say that it comes back when plasmashell is restarted, right?

I only use one 1080p monitor at 100% scaling. I have a 30px-tall non-floating full width panel on the top and a 48px-tall floating panel on the bottom whose width is set to Fit Content.

The task manager icons becoming blurry when plasmashell restarts or starting a new Plasma session is totally random, but I can always make tray icons blurry by dragging and dropping any of them, regardless of which side of the screen the panel is attached to.

By the way, I am currently running Plasma 6.2.5 with Frameworks 6.9 and Qt 6.8.1.
Comment 39 xniksysx 2025-01-15 15:33:00 UTC
My conf:
Operating System: Archlinux 
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1
Kernel Version: 6.12.9-zen1-1-zen 
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600X 6-Core Processor
Memory: 31,2 GiB RAM
Graphics Processor: AMD Radeon RX 6600

About panel:
Panel on bottom, align center, width on all, heigh 44px, show always, adaptiv, float. 

Reproduce: Right click on icon app in tray, now icon have blur effect,  remove the cursor and the icon remains blurred until you hover the mouse cursor over it.  

Some times icon blurry with out right click on it.
Comment 40 Nate Graham 2025-01-15 18:39:30 UTC
(In reply to Timothy B from comment #38)
> but I can always make tray icons blurry by dragging and dropping any of them

Can you clarify? System Tray icons aren't draggable.
Comment 41 Timothy B 2025-01-15 22:44:27 UTC
(In reply to Nate Graham from comment #40)
> (In reply to Timothy B from comment #38)
> > but I can always make tray icons blurry by dragging and dropping any of them
> 
> Can you clarify? System Tray icons aren't draggable.

It's true that they're not draggable. What I actually mean is you click and drag an icon fast enough as if you're doing a drag-and-drop.
Comment 42 Timothy B 2025-01-15 22:51:55 UTC
Created attachment 177386 [details]
Making system tray icons blurry with click-hold-drag

Here, I made a quick video demonstrating what I mean by doing a click-hold-drag on a system tray icon. Halfway through the video, you will see that the outlines on the clipboard icon become really blurry.
Comment 43 Nate Graham 2025-01-16 17:40:07 UTC
Oh my goodness, I can reproduce that now. It's now quite easy to reproduce:

1. Click on widget icon and hold
2. Drag elsewhere (this doesn't actually move it, of course).
3. Release

Now the icon is blurry until I hover over it with the pointer again.

Moving to Kirigami for further investigation. I suspect it has something to do with the active highlighting effect.
Comment 44 Nate Graham 2025-01-21 21:14:21 UTC
*** Bug 498833 has been marked as a duplicate of this bug. ***
Comment 45 Artem 2025-01-21 22:13:59 UTC
Affirmative. I have had the same problem. However, I do not use scaling
Comment 46 Artem 2025-01-21 22:22:10 UTC
(In reply to Artem from comment #45)
> Affirmative. I have had the same problem. However, I do not use scaling

My conf:
Operating System: Fedora Linux 41
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1
Kernel Version: 6.12.9-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Graphics Processor: NVIDIA GeForce GTX
Comment 47 Daniil-Viktor 2025-01-30 15:10:16 UTC
(In reply to Nate Graham from comment #43)
> Oh my goodness, I can reproduce that now. It's now quite easy to reproduce:
> 
> 1. Click on widget icon and hold
> 2. Drag elsewhere (this doesn't actually move it, of course).
> 3. Release
> 
> Now the icon is blurry until I hover over it with the pointer again.
> 
> Moving to Kirigami for further investigation. I suspect it has something to
> do with the active highlighting effect.

Don't think highlighting effect blurs it, i think its because of ScaleAnimator
https://invent.kde.org/plasma/plasma-workspace/-/blob/master/applets/systemtray/package/contents/ui/items/AbstractItem.qml?ref_type=heads#L118

Icons don't get blurry without it
Comment 48 Akseli Lahtinen 2025-02-06 10:30:37 UTC
I can repro this too, it's like the animation gets stuck halfway when doing the click and drag on the icon
Comment 49 Bug Janitor Service 2025-02-06 12:52:01 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kirigami/-/merge_requests/1721
Comment 50 Marco Martin 2025-02-06 13:37:18 UTC
Git commit 3094b350b672a9bf6236a37e19d946885abeea9a by Marco Martin.
Committed on 06/02/2025 at 13:37.
Pushed by mart into branch 'master'.

Revert "make sure the node is always at an integer position"

That attempt to align to pixel grid didn't really produce sharper results and
produced an unstable result on fractional scaling, especially when animations are involved

This reverts commit f36f6e6ffe5f622af112f07631466687d49ec349.

M  +0    -6    src/primitives/icon.cpp

https://invent.kde.org/frameworks/kirigami/-/commit/3094b350b672a9bf6236a37e19d946885abeea9a