-
-
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] iconcolor
does not influence currentColor
with color-scheme:light dark
#2240
Comments
Did you enable the "inline SVG" setting ? |
The description of Inline SVG is:
After I enabled it, the icon colours were applied. As the description does not contain any drawbacks for Inline SVGs the user (I) cannot anticipate any reasons why not to enable it. Please either extend the above description to include pro- and contra of enabling the option, or remove the option and always enable Inline SVGs. |
The advantage is the ability to control the color for icons compatible with that feature. Classic iconset from OH does not support that feature. The disadvantages are non standard additional treatment to load SVG images, bigger page size (SVG images are then inside the page) and I am not 100% sure that the browser cache is fully working. My advice is to not enable it except you really want to control icon color and you use icons supporting that feature. I will try to enhance a little the description. |
I should also mention that material/framework7/iconify icons are not concerned. |
In order to explain the default value. Related to openhab#2240 Signed-off-by: Laurent Garnier <[email protected]>
In order to explain the default value. Related to #2240 Signed-off-by: Laurent Garnier <[email protected]>
I have this file under openhab/icons/classic/on.svg:
and an element in sitemap:
Essentially it shows a black
O
in light mode, and a whiteO
in dark mode by usingfill:currentColor
.I change the element to
I would expect that now the color of the
O
is green, red or blue. In BasicUI it is still white or black, while Android-Openhab shows it coloured.BasicUI shall display the
O
coloured, too.The text was updated successfully, but these errors were encountered: