Bug 516007 - App icons not rendered correctly when preferring SVG over PNG
Summary: App icons not rendered correctly when preferring SVG over PNG
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kiconthemes
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 6.23.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords: regression
: 516376 516383 516841 516845 (view as bug list)
Depends on:
Blocks:
 
Reported: 2026-02-14 21:59 UTC by SimilarAlpha
Modified: 2026-03-16 14:46 UTC (History)
12 users (show)

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


Attachments
Comparison between Gwenview and Inkscape (411.88 KB, image/png)
2026-02-14 21:59 UTC, SimilarAlpha
Details
Icon displayed in Application Launcher (23.40 KB, image/png)
2026-02-14 22:01 UTC, SimilarAlpha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SimilarAlpha 2026-02-14 21:59:40 UTC
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).
Comment 1 SimilarAlpha 2026-02-14 22:01:59 UTC
Created attachment 189595 [details]
Icon displayed in Application Launcher
Comment 2 SimilarAlpha 2026-02-15 09:28:58 UTC
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).
Comment 3 Nicolas Fella 2026-02-15 12:29:49 UTC
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
Comment 4 Nicolas Fella 2026-02-15 12:46:11 UTC
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
Comment 5 Nicolas Fella 2026-02-20 09:30:14 UTC
*** Bug 516376 has been marked as a duplicate of this bug. ***
Comment 6 Nicolas Fella 2026-02-20 12:05:26 UTC
*** Bug 516383 has been marked as a duplicate of this bug. ***
Comment 7 skenda 2026-02-21 17:20:32 UTC
Any workarounds? Plasma 6.6. made the SVG icon preferred over the PNG one, so many people are experiencing the bug suddenly (including me)
Comment 8 Antonio Rojas 2026-02-28 10:31:58 UTC
*** Bug 516841 has been marked as a duplicate of this bug. ***
Comment 9 Nicolas Fella 2026-02-28 11:21:22 UTC
*** Bug 516845 has been marked as a duplicate of this bug. ***
Comment 10 EpicTux123 2026-02-28 14:32:13 UTC
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.
Comment 11 Flipper 2026-03-08 13:54:33 UTC
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
Comment 12 Nate Graham 2026-03-09 14:14:00 UTC
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.
Comment 13 agarplayerarlon 2026-03-16 01:39:09 UTC
yeah please, revert the change. there's no point in adding new bugs, just fix the QT issue and then make the change
Comment 14 i 2026-03-16 07:26:57 UTC
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.
Comment 15 Nate Graham 2026-03-16 14:18:08 UTC
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
Comment 16 skenda 2026-03-16 14:46:30 UTC
(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 🙏