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

[Sitemap] Add color 'itemValue' #2032

Merged
merged 2 commits into from
Mar 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions ui/sitemaps.md
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ Note also, the effect of omitting `Temperature` and the comparison operator in t
Below is a list of standard colors and their respective RGB color codes.

| Color Name | Preview | RGB Color Code |
| ---------- | ------------------------------------------- | -------------- |
|------------|---------------------------------------------|----------------|
| maroon | <div style="color: #800000;">&#11044;</div> | `#800000` |
| red | <div style="color: #ff0000;">&#11044;</div> | `#ff0000` |
| orange | <div style="color: #ffa500;">&#11044;</div> | `#ffa500` |
Expand All @@ -677,8 +677,13 @@ Generally, you can expected that valid HTML colors will be accepted (e.g. `green
The color names above are agreed on between all openHAB UIs and are therefore your safest choice.
Colors defined by a human-readable name may be adjusted for higher contrast, e.g. on a dark theme `black` may be displayed as white, because white has a higher contrast to the dark background compared to black.

For better theming support Basic UI and the Android app also accepts the keywords `primary` and `secondary` as colors.
They will be mapped to the corresponding colors of the UI theme.
There are also the following keywords that can be used as colors:

| Color Name | Note |
|------------|------------------------------------|
| primary | Primary theme color |
| secondary | Secondary theme color |
| itemValue | The state of the linked Color item |

### Icons

Expand Down