Bug 413647 - Preview of cursor themes is pixelated if fractional display scaling is used
Summary: Preview of cursor themes is pixelated if fractional display scaling is used
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_cursortheme (show other bugs)
Version: 5.27.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 414947 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-10-30 19:38 UTC by Patrick Silva
Modified: 2023-12-03 00:44 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0


Attachments
screenshot (285.22 KB, image/png)
2019-10-30 19:38 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2019-10-30 19:38:55 UTC
Created attachment 123606 [details]
screenshot

STEPS TO REPRODUCE
1. set  display scale factor to 1.2 in system settings > display and monitor > display configuration
2. restart plasma session
3. open system settings > cursors
4. set size to 48 on bottom

OBSERVED RESULT
attached screenshot shows the pixelated previews

EXPECTED RESULT
crisp previews

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.17.2
KDE Frameworks Version: 5.63.0
Qt Version: 5.13.1
Comment 1 Patrick Silva 2019-12-09 11:42:16 UTC
*** Bug 414947 has been marked as a duplicate of this bug. ***
Comment 2 Nate Graham 2020-07-17 14:21:13 UTC
Oh this was fixed by a pixel alignment thing recently. Cannot reproduce with 125% on 1080p or 250% on 4k.
Comment 3 Patrick Silva 2020-07-20 14:37:57 UTC
it's still reproducible on both Arch (Plasma 5.19.3) and neon unstable.

STEPS TO REPRODUCE
1. set  display scale to 125% in system settings > display and monitor > display configuration
2. restart plasma session (I can't reproduce without this step)
3. open system settings > cursors
4. set size to 48 on bottom

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.19.80
KDE Frameworks Version: 5.73.0
Qt Version: 5.14.2
Comment 4 Patrick Silva 2021-01-24 18:48:47 UTC
Still an issue.

Operating System: Arch Linux
KDE Plasma Version: 5.20.90
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Comment 5 Patrick Silva 2022-09-18 17:06:48 UTC
Can reproduce with the steps from comment 3.

Operating System: Arch Linux
KDE Plasma Version: 5.25.90
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Graphics Platform: X11
Comment 6 Fushan Wen 2023-10-12 16:06:38 UTC
Git commit 5c74abe6349c92d86ecc7722916df560e7ebfb54 by Fushan Wen.
Committed on 12/10/2023 at 17:29.
Pushed by fusionfuture into branch 'master'.

kcms/cursortheme: fix blurry cursor preview when using fractional scaling

Scale the cursor preview pixmap in PreviewWidget instead of in QML,
which makes sure the source image is sharp.
Related: bug 392155
FIXED-IN: 6.0

M  +1    -9    kcms/cursortheme/ui/Delegate.qml
M  +24   -6    kcms/cursortheme/xcursor/previewwidget.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/5c74abe6349c92d86ecc7722916df560e7ebfb54
Comment 7 Patrick Silva 2023-11-14 15:26:04 UTC
This bug persists with display scale 125%.

Operating System: Arch Linux 
KDE Plasma Version: 5.27.80
KDE Frameworks Version: 5.245.0
Qt Version: 6.6.0
Graphics Platform: Wayland
Comment 8 Patrick Silva 2023-12-03 00:44:25 UTC
Cannot reproduce on Plasma 6 beta.

Operating System: Arch Linux 
KDE Plasma Version: 5.90.0
KDE Frameworks Version: 5.246.0
Qt Version: 6.6.1
Graphics Platform: Wayland