Bug 514103 - Blurry icons even when SVG icons are available
Summary: Blurry icons even when SVG icons are available
Status: RESOLVED DUPLICATE of bug 502273
Alias: None
Product: frameworks-kiconthemes
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-03 10:23 UTC by vhle
Modified: 2026-01-04 19:19 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Blurry icons even when SVG files are available (94.77 KB, image/png)
2026-01-03 10:23 UTC, vhle
Details
Patch to confirm the analysis (1.14 KB, patch)
2026-01-03 10:26 UTC, vhle
Details
Patch to confirm the analysis (1.16 KB, patch)
2026-01-03 10:45 UTC, vhle
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vhle 2026-01-03 10:23:39 UTC
Created attachment 188178 [details]
Blurry icons even when SVG files are available

SUMMARY

Blurry icons when using some SVG icon theme

STEPS TO REPRODUCE
1. Install an SVG icon theme, e.g., Gartoon Redux 
   - The package is available in Ubuntu 25.10 repo, package name: gnome-icon-theme-gartoon-redux
2. Select the icon theme in System Settings > Colors & Themes > Icons
3. Launch Dolphin and zoom in (increase icon size)

OBSERVED RESULT
Icons should be smooth

EXPECTED RESULT
Icons are blurry. See the attachment blurry_icons.png

SOFTWARE/OS VERSIONS
Operating System: Ubuntu 13
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.2
Kernel Version: 6.17.0-7-generic (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION

The relevant code is in kiconthemes/src/kicontheme.cpp
- KIconTheme::iconPathByName() returns the first matching icon matching a name
- The extensions to be considered are .png, .svgz, .sgv, .xpm in that order, as defined by mExtensions
- For example, for `inode-directory`, there are two matching files:
    + /usr/share/icons/GartoonRedux/32x32/mimetypes/inode-directory.png
    + /usr/share/icons/GartoonRedux/scalable/mimetypes/inode-directory.svg
- The first file is selected even though the second one is better

To confirm the analysis, I re-ordered the extensions to prioritize .svg over .png files and the icons are now smooth.
Comment 1 vhle 2026-01-03 10:26:51 UTC
Created attachment 188179 [details]
Patch to confirm the analysis
Comment 2 vhle 2026-01-03 10:45:15 UTC
Created attachment 188180 [details]
Patch to confirm the analysis
Comment 3 Bug Janitor Service 2026-01-03 16:55:44 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kiconthemes/-/merge_requests/202
Comment 4 Nate Graham 2026-01-04 19:19:38 UTC
Looks like the change made to fix 502273 missed that case! Marking as a duplicate of 502273, and I'll change the merge request to auto-close it once merged.

Thanks for the contribution!

*** This bug has been marked as a duplicate of bug 502273 ***