Bug 385936

Summary: IconItem not displaying system-suspend icon correctly
Product: [Frameworks and Libraries] libplasma Reporter: Musikolo <musikolo>
Component: libplasmaquickAssignee: Marco Martin <notmart>
Status: RESOLVED FIXED    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 5.39.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Using icon name
Using breeze icon full path
Using breeze-dark icon full path

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.