https://bugs.kde.org/show_bug.cgi?id=385936

            Bug ID: 385936
           Summary: IconItem not displaying system-suspend icon correctly
           Product: frameworks-plasma
           Version: 5.39.0
          Platform: Archlinux Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: libplasmaquick
          Assignee: notm...@gmail.com
          Reporter: musik...@hotmail.com
  Target Milestone: ---

Created attachment 108448
  --> https://bugs.kde.org/attachment.cgi?id=108448&action=edit
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. However, if I pass the full path of the icon, it shows the icon as expected:
- breeze (attachment 2): /usr/share/icons/breeze/actions/22/system-suspend.svg
- breeze-dark (attachment 3):
/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.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to