-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Impossible to style usersvg. #196
Comments
I have documented my ventures using external SVGs and SVG Injectors here: TL;DR; What you want requires a working SVG Injector (I'm working on that one), and an SVG that is suited for external styling using the UserSVG tool. Bit of a bumpy road to get this working... The currently released SAK version uses an older SVG Injector which is disabled, due to too many problems. |
Would the approach custom-button-card does somehow work here as well?
So then we should be able to just style it as an image and apply a filter over it ? See part 'img_cell' below, sorry for JSON format, had to go get it out of a backup and i used a GUI dashboard back then.
|
This kind of styling doesn't work with the current release, but in dev it works what you want if I understand it correctly. Below are some examples with and without SVG Injection. Things that do work on both external and injected SVGs are I changed one of my FCE templates. Example 1The definition with a filter on the usersvg, and a fill on the mask on the "Weed" column. You can ignore the mask part btw: You can see the definition in the Edge inspector, including the external SVG file: Example 2Apply a sepia filter, and then a hue-rotate(45) to get green... Example 3The same filters applied to the Grass, which is an Injected SVG The Edge inspector shows the SVG is injected. It has the Because not all injected SVGs behave as they should, injection can be disabled: If I have enough progress this week besides my work, I will release a new version (v2.4.2) with the changes in the development environment (#76 and #77) and the SVG Injector together with working UserSvg styling. |
Bug description
Impossible to style usersvg. i hope there is no error in the code itself or that i'm overlooking something.
Things i tried:
had styling under animation first, but moved it inline to be able to test it better.
used following style 'options'
usersvg
svg
image
toolsets
using both my own SVG as well as one of your built-in ones to be sure that its not a problem with the SVG itself.
To Reproduce
Using this code:
The text was updated successfully, but these errors were encountered: