| Summary: | App icons not rendered correctly when preferring SVG over PNG | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-kiconthemes | Reporter: | SimilarAlpha <michalmaja3> |
| Component: | general | Assignee: | kdelibs bugs <kdelibs-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | agarplayerarlon, andrejskenderija, brutishly_daybreak277, bugseforuns, EpicTux123, gerenlzn, kde.tmapu, Liarus1001, nate, ngompa, nicolas.fella, noahdcraig |
| Priority: | NOR | Keywords: | regression |
| Version First Reported In: | 6.23.0 | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| See Also: |
https://bugs.kde.org/show_bug.cgi?id=448234 https://bugs.kde.org/show_bug.cgi?id=502273 |
||
| Latest Commit: | https://invent.kde.org/frameworks/kiconthemes/-/commit/2dc30a2f27e2383994eb77e79b0c33f47ce4e0c7 | Version Fixed/Implemented In: | 6.25 |
| Sentry Crash Report: | |||
| Attachments: |
Comparison between Gwenview and Inkscape
Icon displayed in Application Launcher |
||
Created attachment 189595 [details]
Icon displayed in Application Launcher
On other machine (with Frameworks 6.22) scalable icon is also displayed incorrectly when opened in Gwenview. Updating to 6.23 caused this broken icon to be shown in Application Launcher (with 6.22 it was correct - perhaps it was a .png icon). The KSvg framework is not involved in rendering this. The only change in Frameworks was that the icon loader now prefers SVG over PNG (https://invent.kde.org/frameworks/kiconthemes/-/commit/a47280f3c370d4a97117d0b32682237fcd848664), the actual rendering issue is older than that The OBS SVG uses the clipPath element, which is not (yet) supported in Qt's SVG rendering. See https://qt-project.atlassian.net/browse/QTBUG-118854 *** Bug 516376 has been marked as a duplicate of this bug. *** *** Bug 516383 has been marked as a duplicate of this bug. *** Any workarounds? Plasma 6.6. made the SVG icon preferred over the PNG one, so many people are experiencing the bug suddenly (including me) *** Bug 516841 has been marked as a duplicate of this bug. *** *** Bug 516845 has been marked as a duplicate of this bug. *** I've reopened this issue. This is not a OBS problem, but a Qt problem. Sure, but until Qt implements the required thing to fix the problem, I believe the "prefer SVG over PNG" commit should be reverted for now, since it causes problems for users. Easiest solution to fix this issue is just to revert https://invent.kde.org/frameworks/kiconthemes/-/commit/a47280f3c370d4a97117d0b32682237fcd848664 In the end. The consumer does not care about if the app icon is an SVG or a PNG. Ideally SVG icons should be used but since QT does not support much SVG features. The "prefer svg icons" can be revisited in the future when the following issue is marked as complete: https://qt-project.atlassian.net/browse/QTBUG-115223 Merge request to revert the change: https://invent.kde.org/frameworks/kiconthemes/-/merge_requests/212 JFYI all of these issues are really instances of Bug 448234, it's just that they were masked by the previous behavior of using the icon from its PNG version rather than the SVG version. yeah please, revert the change. there's no point in adding new bugs, just fix the QT issue and then make the change Also relevant: https://bugs.kde.org/show_bug.cgi?id=517534. The merge request to revert the change for this bug would also fix that issue in the short term, but any fixes to SVG rendering wouldn't help. Git commit 2dc30a2f27e2383994eb77e79b0c33f47ce4e0c7 by Nate Graham, on behalf of EpicTux123 Penguin. Committed on 16/03/2026 at 14:18. Pushed by ngraham into branch 'master'. Revert "KIconTheme: Prefer SVG files over PNG files" Reverts a47280f3c370d4a97117d0b32682237fcd848664 until Qt implements the required thing upstream. Related: bug 502273 M +1 -1 src/kicontheme.cpp https://invent.kde.org/frameworks/kiconthemes/-/commit/2dc30a2f27e2383994eb77e79b0c33f47ce4e0c7 (In reply to Nate Graham from comment #15) > Git commit 2dc30a2f27e2383994eb77e79b0c33f47ce4e0c7 by Nate Graham, on > behalf of EpicTux123 Penguin. > Committed on 16/03/2026 at 14:18. > Pushed by ngraham into branch 'master'. > > Revert "KIconTheme: Prefer SVG files over PNG files" > > Reverts a47280f3c370d4a97117d0b32682237fcd848664 until Qt implements the > required thing upstream. > Related: bug 502273 > > M +1 -1 src/kicontheme.cpp > > https://invent.kde.org/frameworks/kiconthemes/-/commit/ > 2dc30a2f27e2383994eb77e79b0c33f47ce4e0c7 It's finally fixed? Yay 🙏 |
Created attachment 189594 [details] Comparison between Gwenview and Inkscape SUMMARY OBS Studio scalable icon (.svg) is rendered incorrectly as of Frameworks 6.23. The icon was displayed properly with Frameworks 6.22. Incorrect rendering affects KDE apps (including preview in Dolphin) and Application Launcher. STEPS TO REPRODUCE 1. Install OBS Studio 2. Open Application Launcher and look at the icon (or open "/usr/share/icons/hicolor/scalable/apps/com.obsproject.Studio.svg" in Gwenview) OBSERVED RESULT Icon is displayed incorrectly - dark background is on top of circle. EXPECTED RESULT Icon rendered correctly - dark background is behind the circle and doesn't protrude. SOFTWARE/OS VERSIONS Linux: 6.19.0-1-cachyos-bore-lto KDE Plasma Version: 6.5.5 KDE Frameworks Version: 6.23.0 Qt Version: 6.10.2 ADDITIONAL INFORMATION I ruled out that the issue is caused by coincidental update of librsvg library (using bundled program "rsvg-convert" produced correct image).