Bug 385936 - IconItem not displaying system-suspend icon correctly
Summary: IconItem not displaying system-suspend icon correctly
Status: RESOLVED FIXED
Alias: None
Product: libplasma
Classification: Frameworks and Libraries
Component: libplasmaquick (show other bugs)
Version: 5.39.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-19 04:07 UTC by Musikolo
Modified: 2020-01-31 19:42 UTC (History)
1 user (show)

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


Attachments
Using icon name (55.89 KB, image/png)
2017-10-19 04:07 UTC, Musikolo
Details
Using breeze icon full path (62.72 KB, image/png)
2017-10-19 04:08 UTC, Musikolo
Details
Using breeze-dark icon full path (67.90 KB, image/png)
2017-10-19 04:09 UTC, Musikolo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Musikolo 2017-10-19 04:07:11 UTC
Created attachment 108448 [details]
Using icon name

Hi,

I'm the developer of plasma5-applets-system-panel plasmoid. You can find the source code of this project at https://github.com/Musikolo/plasma5-applets-system-panel

I've been working these days on adding icons for breeze-dark, the new theme I've decided to use, since such a theme wasn't supported before. While doing this, I've  noticed that IconItem is not working correctly for system-suspend icon. I have no issues loading any other standard system-* icon.

I have a data structure that contains the icon name among other things:
- https://github.com/Musikolo/plasma5-applets-system-panel/blob/master/src/package/contents/code/data.js

Using the above data structure, I'm loading the icon at:
- https://github.com/Musikolo/plasma5-applets-system-panel/blob/master/src/package/contents/ui/main.qml#L117

When I use the icon name, default option, I get what you can see in attachment 1 [details]. However, if I pass the full path of the icon, it shows the icon as expected:
- breeze (attachment 2 [details]): /usr/share/icons/breeze/actions/22/system-suspend.svg
- breeze-dark (attachment 3 [details]): /usr/share/icons/breeze-dark/actions/22/system-suspend.svg

All other icons shown in the screenshots are loaded by name, and they are printed correctly. To my understanding, this is a bug since this is not the desired/expected behavior. Furthermore, if I copy the image system-suspend.svg as system-suspend2.svg under .../actions/22 folder, I can successfully use icon name system-suspend2. This proves the image itself is good.

Please, let me know if you further details.


N.B: All screenshots have been zoomed-in 10X to better visualize my issue.
Comment 1 Musikolo 2017-10-19 04:08:45 UTC
Created attachment 108449 [details]
Using breeze icon full path
Comment 2 Musikolo 2017-10-19 04:09:46 UTC
Created attachment 108450 [details]
Using breeze-dark icon full path
Comment 3 Nate Graham 2020-01-31 19:42:01 UTC
This should be fixed now.