Skip to content
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] Set color-scheme for OH icon #1937

Merged
merged 1 commit into from Jun 24, 2023

Conversation

lolodomo
Copy link
Contributor

to have icon color depending on selected theme

Fix #1861

Will work only with SVG custom OH icons containing style="color-scheme: light dark" and currentColor as fill color.

Signed-off-by : Laurent Garnier lg.hc@free.fr

to have icon color depending on selected theme

Fix openhab#1861

Will work only with SVG custom OH icons containing style="color-scheme: light
dark" and currentColor as fill color.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
@lolodomo lolodomo added enhancement New feature or request basic ui Basic UI labels Jun 24, 2023
@lolodomo lolodomo requested a review from a team as a code owner June 24, 2023 10:57
@kaikreuzer kaikreuzer merged commit 7cb786a into openhab:main Jun 24, 2023
3 checks passed
@kaikreuzer kaikreuzer added this to the 4.0 milestone Jun 24, 2023
@lolodomo lolodomo deleted the basicui_color_scheme branch June 24, 2023 12:36
@dilyanpalauzov
Copy link

I don’t understand how the code is organized, in particular how this feature is mutually exclusive with “icon colors”, but wouldn’t it be sufficient to add style="color-scheme: light" / style="color-scheme: dark" to the :root ( <html>) element once, instead to each <img>?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
basic ui Basic UI enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BasicUI] CurrentColor in SVG depends on browser mode preference, not on the theme selected in the settings
3 participants