| Summary: | Blurry icons even when SVG icons are available | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-kiconthemes | Reporter: | vhle <v.h.le> |
| Component: | general | Assignee: | kdelibs bugs <kdelibs-bugs-null> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | CC: | nate |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
Blurry icons even when SVG files are available
Patch to confirm the analysis Patch to confirm the analysis |
||
Created attachment 188179 [details]
Patch to confirm the analysis
Created attachment 188180 [details]
Patch to confirm the analysis
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kiconthemes/-/merge_requests/202 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 *** |
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.