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

Handle iconcolor in basicui for iconify icons #728

Merged
merged 1 commit into from
Sep 4, 2023

Conversation

ccutrer
Copy link
Contributor

@ccutrer ccutrer commented Sep 2, 2023

And for dark mode, if no color is specified, use white.

Note that for icons that are already colored, they won't change. Iconify only modifies icons with fill="currentColor".

@ccutrer
Copy link
Contributor Author

ccutrer commented Sep 2, 2023

cc @digitaldan

@ccutrer
Copy link
Contributor Author

ccutrer commented Sep 2, 2023

Hmm, hold off on reviewing this. I need to look through openhab/openhab-webui#1743 and linked issues and PRs. I may change how things implemented to more closely match the web wrt dark mode.

And for dark mode, if no color is specified, use white

Note that for icons that are already colored, they won't
change. Iconify only modifies icons with `fill="currentColor"`.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
@ccutrer ccutrer changed the title handle iconcolor in basicui Handle iconcolor in basicui for iconify icons Sep 2, 2023
@ccutrer
Copy link
Contributor Author

ccutrer commented Sep 2, 2023

Okay, this is much better, and simpler, and matches how the web BasicUI works.

Copy link
Contributor

@digitaldan digitaldan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I ran it through some quick tests with the one sitemap i have, i did not get to test the iconify support, but i trust that was tested and is working. I'll push out a test flight build right now, f you can verify this looks good once thats out, i'll plan on an official release end of week.

@digitaldan digitaldan merged commit 407f22b into openhab:develop Sep 4, 2023
2 checks passed
@ccutrer
Copy link
Contributor Author

ccutrer commented Sep 16, 2023

The TestFlight build has been working great for the past two weeks on three different phones at my house, including automatic dark mode transitions, and a huge variety of iconify icons on a very large sitemap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants