Bug 478165 - The hovered clipboard item is blurry with fractional scale factor
Summary: The hovered clipboard item is blurry with fractional scale factor
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Clipboard (show other bugs)
Version: 5.90.0
Platform: Arch Linux Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6, wayland
Depends on:
Blocks:
 
Reported: 2023-12-06 14:03 UTC by Paragoumba
Modified: 2024-03-24 20:50 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot of the blurry item (28.96 KB, image/png)
2023-12-06 14:03 UTC, Paragoumba
Details
Screen shots/cast with the blurring/artifacts problem (2.26 MB, application/zip)
2024-03-13 19:53 UTC, zvova7890
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paragoumba 2023-12-06 14:03:34 UTC
Created attachment 163941 [details]
screenshot of the blurry item

SUMMARY
The hovered item in the clipboard applet is blurry

STEPS TO REPRODUCE
1. Copy multiple strings to the clipboard
2. Open the applet and move the mouse over one of the items
3. The hovered item (the content and all the icons) is blurry

OBSERVED RESULT
The hovered item is blurry

EXPECTED RESULT
The hovered item should not be blurry

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: ArchLinux
KDE Plasma Version: 5.90.0
KDE Frameworks Version: 5.246.0
Qt Version: 6.6.1

ADDITIONAL INFORMATION
Comment 1 Fushan Wen 2023-12-06 15:54:48 UTC
wayland?
Comment 2 Paragoumba 2023-12-06 15:55:42 UTC
(In reply to Fushan Wen from comment #1)
> wayland?

Yes
Comment 3 Nate Graham 2023-12-07 22:07:04 UTC
Cannot reproduce on Wayland at 200% scale. What scale factor are you using?
Comment 4 Paragoumba 2023-12-07 22:13:04 UTC
(In reply to Nate Graham from comment #3)
> Cannot reproduce on Wayland at 200% scale. What scale factor are you using?

I am at 100%. I can also not reproduce at 200%. It seems to happen for every scale factor from 150% and below although below 100% it is difficult to see for sure
Comment 5 Nate Graham 2023-12-11 21:39:01 UTC
Can reproduce at 100% scale: the text shifts over to the left slightly when hovered. I'm guessing it's on a fractional pixel location, which causes the blurriness.
Comment 6 Nate Graham 2023-12-11 22:02:41 UTC
Git commit a4b809b345ae7bf6c63fe16dab41d9bf506a6965 by Nate Graham.
Committed on 11/12/2023 at 23:01.
Pushed by ngraham into branch 'master'.

applets/clipboard: round up divided GridUnits

Otherwise the value can be non-deterministic and cause blurriness.

M  +3    -3    applets/clipboard/contents/ui/ClipboardItemDelegate.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/a4b809b345ae7bf6c63fe16dab41d9bf506a6965
Comment 7 zvova7890 2024-03-13 01:02:41 UTC
Still experience this issue in Plasma 6.0.1

Hovering under the clipboard history applet causes text to become blurred. 

Scale factor: 1.5
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Graphics Platform: Wayland
Comment 8 zvova7890 2024-03-13 19:51:55 UTC
Also, I've noticed that all controls inside the systray have graphics glitches when using fractional scale.

1. Font has glitches (artifacts, half-rendered characters, etc.)
2. Control slides are blurred.
3. Checkbox circles are blurred + dot inside the circle with artifacts (because of upscale?).
4. Clipboard history text all with artifacts
5. Network monitor also with control and fonts problems(it is dancing now :))

Also, Spectacle makes blurred screenshots under Wayland, so I've attached one screenshot from an X11 session(which also now has artifacts in QML controls inside the systray; KDE 5 didn't have this in the X11 session at all)

Please find archive in attachments, there is screenshots and screen cast of dancing fonts.
Comment 9 zvova7890 2024-03-13 19:53:02 UTC
Created attachment 167120 [details]
Screen shots/cast with the blurring/artifacts problem
Comment 10 Nate Graham 2024-03-14 15:59:44 UTC
Let's use this bug report only for blurry text; blurry icons constitute a separate thing that's less fixable than blurry text.

I can reproduce the issue at 225% scale. It's subtle and hard to notice, but clearly there. I think it's a pixel-misalignment issue as the text visible moves a bit when hovered.
Comment 11 Nate Graham 2024-03-14 16:14:38 UTC
The OpacityMask appears to be causing this. If I remove it, the issue disappears. Could be an inherent issue with masking a label, it could be a pixel misalignment between the original label and the masked version that we substitute for it on the hovered item.
Comment 12 zvova7890 2024-03-16 22:45:55 UTC
https://bugreports.qt.io/browse/QTBUG-122830
Comment 13 Nate Graham 2024-03-24 16:49:07 UTC
That's not the issue; this specific source of blurriness is caused by the opacity mask.
Comment 14 zvova7890 2024-03-24 20:50:00 UTC
Yes, sorry. It's about the glitched and dancing font in P.5