-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
[BasicUI] Use inline SVG for "colorless" SVG icons #1799
Conversation
This PR is currently based on PR #1792. I will rebase it when #1792 is merged. Edit: done. The change is working well but I have still to check if cache is really working when using "fectch". It looks like it is not with Firefox. The disadvantages of this change is that:
The big advantage is that you can now change the color of your icons (for colorless SVG icons). This change will add nothing really new when using the classic iconset as all (or almost all ?) icons have hardcoded colors. I could also make this new feature an option of Basic UI. |
f9d4ab4
to
e32544e
Compare
Related to openhab#1743 Use a HTML svg element (inline SVG) instead of a img element when the icon servlet returns a SVG icon containing "currentColor". Then it is possible to adjust the color of these icons by using the iconcolor sitemapo attribute. Signed-off-by: Laurent Garnier <lg.hc@free.fr>
e32544e
to
5d3468b
Compare
@lolodomo You asked for this to be reviewed, but the PR is still in DRAFT mode. Is this by accident? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like some voodoo, but I trust you have tested it. 😄
Just one small comment below.
My wish is to merge it before new milestone. |
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
@kaikreuzer : PR is now fully ready for a merge. With this sitemap:
and the mic.svg being a custom icon containing currentColor as the fill color. With the feature enabled: => inline SVG and color considered |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Related to #1743
Use a HTML svg element (inline SVG) instead of a img element
when the icon servlet returns a SVG icon containing "currentColor".
Then it is possible to adjust the color of these icons by using the
iconcolor sitemapo attribute.
Signed-off-by: Laurent Garnier lg.hc@free.fr