Hi everyone,
For some reason I can’t change color and font size of an mdi icon in my floorplan.
I have created my floorplan using sweethome3D.
I cut the part of the image and save it as a PNG file and I added it as a picture element card.
I changed the icon but when I’m trying to set its size and color it doesn’t affect on the image.
What I’m doing wrong?
Thanks
Great, indeed that works.
What about the color?
I have tried both "--iron-icon-fill-color" and "--paper-item-icon-color": green but none of them is working.
Can you help me here?
Thanks
I don’t think it’s possible to change icon colours, apart from changing the theme (which will affect all icons). I believe there is a custom component which will do it, though. Have a look here.
Check the first character before your color attributes
In the first source code you published, those was prefixed by single quote character.
In the most recent one, it seems you are prefixing them with wrong hyphen.
Also I’m sure you are using wrong double-quote characters for colors
I’m judging this by comparing how tobi-bo’s code is shown on the forum in comparison to your one.
tobi-bo , I have tried to copy the code that you mentioned above, I just changed the entity.
Still nothing. (See picture below)
I know that it doesn’t make sense but, maybe it related to that face that I’m using a PNG file as my floor plan or that I use an entity that its device currently doesn’t get powered?
Found it,
Indeed it was related to the entity or to the power.
I changed the entity to one of my switches who has power and indeed the color has changed.