Summary: | Size and position of emblem icon depends on thumbnail's dimensions | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Thomas Moerschell <tmoerschell> |
Component: | Desktop icons & Folder View widget | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | CONFIRMED --- | ||
Severity: | minor | CC: | hein, meven, nate, nicolas.fella |
Priority: | NOR | ||
Version First Reported In: | master | ||
Target Milestone: | 1.0 | ||
Platform: | Other | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=498211 | ||
Latest Commit: | https://invent.kde.org/frameworks/kguiaddons/-/commit/5f62220b4ede5b92f862303abfc82c95a8375e30 | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: |
Issue with old KIconUtils
Issue with latest KIconUtils |
Description
Thomas Moerschell
2025-01-31 17:36:09 UTC
Created attachment 177854 [details]
Issue with latest KIconUtils
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kguiaddons/-/merge_requests/168 Git commit 5f62220b4ede5b92f862303abfc82c95a8375e30 by Méven Car. Committed on 04/02/2025 at 09:23. Pushed by nicolasfella into branch 'master'. KIconUtils: simplify addOverlay implementation It seems we can in fact QIcon::paint and get correct output even with a scaling ratio. M +1 -7 src/util/kiconutils.cpp https://invent.kde.org/frameworks/kguiaddons/-/commit/5f62220b4ede5b92f862303abfc82c95a8375e30 Thank Meven! As mentioned in the MR, this has only partially solved the issue. Should I open a new Bug? I do agree that it might be rather low priority, now that it looks normal again. (In reply to Thomas Moerschell from comment #4) > Thank Meven! As mentioned in the MR, this has only partially solved the > issue. Should I open a new Bug? I do agree that it might be rather low > priority, now that it looks normal again. I don't think that's necessary, in dolphin, this is already fixed for 25.04 https://invent.kde.org/system/dolphin/-/merge_requests/889 Yes, however this is about Plasma shell, the icons on the desktop. This is not a regression AFAICT. KIconUtils::addoverlays, scales the overly size based on its input size. This only looks good for square images. In dolphin, we are stopping to use this function https://invent.kde.org/system/dolphin/-/merge_requests/917 to use an overlay size based on the target output size of the icon, not on its input. KIconUtils could have an additional parameter/setter to allow this. |