Skip to content

Commit

Permalink
[Sitemap] Add color 'itemValue' (#2032)
Browse files Browse the repository at this point in the history
* [Sitemap] Add color 'itemValue'

openhab/openhab-core#3453
Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>

* update

Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>

---------

Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>
  • Loading branch information
mueller-ma authored Mar 18, 2023
1 parent ad1e66c commit 86ab6ec
Showing 1 changed file with 8 additions and 3 deletions.
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

0 comments on commit 86ab6ec

Please sign in to comment.