I have created icon pack for my home devices, but some of it not displayed correctly. It displayed correctly in Figma, Chrome, Github, but not in Home Assistant. What I’m doing wrong?
Link to icons pack - GitHub - PaveLGIL/hass-pg-icons
How it should looks like:
suppose if you’re not seeing that, you js resource is not error-free.
In my custom icons repo, I also have a js resource, with all icons embedded. It is troublesome.
And the reason I made the Custom component (built off Thomas Lovens CC), which allows for simple icon drop in, and does not require an update to the resource for each an every icon addition
I’m using Figma to create icons, and tried to change a lot of settings for icons but see this problem every time…( I’m saving it in SVG format every time… But, maybe I need try to use Inscape…
So, looks like I found a problem… svg file contain this rule fill-rule=“evenodd” … But into icon pack I add just ‘d=’ attribute from path… And icon don’t work properly without fill-rule… Not I need to understand how to add icons with this rules…
@petro@Mariusthvdb I have finaly solve it! Thank you so much guys! I opened my icons with Inkscape, select graphics, press on Path → Flatten and then export SVG file) And now it works as expected! Thank you so much for your help!
Inkscape is pretty good. I’ve used it exclusively. Takes some time to learn but you can create icons from scratch pretty easily. It even has a built in option to save as Optimized SVG, which will allow HA to load and cache the resource faster.