I am making a small widget to place on the taskbar. The widget runs fine, except for the icon. I want to give it a custom icon to display. How do I realize that? On the documentation I can find no other help than the Plasmoid.icon variable to set. This is only for registered icons.
Do I need to do something with paint functionality from Plasmacore? Or with the Plasmoid.file() operand?
I reduced my widget to the minimal functionality. The real widget is bit bigger, but this gives me focus on the core.
Themes is in this case not a requirement. Because it is a very personal solution. But for the sake of good programming I will try it next week. (When I have time and a computer to test it.)
If it’s a personal widget and you have a specific image in mind, yeah, no need to overcomplicate things. If it were something to be distributed, you would definitely want to support SVG icons.