From aa2a9cf2631e1fde4ebe88251e858021d18bbdd6 Mon Sep 17 00:00:00 2001 From: mueller-ma Date: Mon, 13 Mar 2023 20:12:39 +0100 Subject: [PATCH 1/2] [Sitemap] Add color 'itemValue' https://github.com/openhab/openhab-core/pull/3453 Signed-off-by: mueller-ma --- ui/sitemaps.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ui/sitemaps.md b/ui/sitemaps.md index 73f790a677..f6192bc213 100644 --- a/ui/sitemaps.md +++ b/ui/sitemaps.md @@ -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 |
| `#800000` | | red |
| `#ff0000` | | orange |
| `#ffa500` | @@ -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 a color item | ### Icons From f78c5cbb2c0176e7a8d8c91b1252a0fd0f98ca7d Mon Sep 17 00:00:00 2001 From: mueller-ma Date: Fri, 17 Mar 2023 17:10:09 +0100 Subject: [PATCH 2/2] update Signed-off-by: mueller-ma --- ui/sitemaps.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ui/sitemaps.md b/ui/sitemaps.md index f6192bc213..0eb10bb1ed 100644 --- a/ui/sitemaps.md +++ b/ui/sitemaps.md @@ -679,11 +679,11 @@ Colors defined by a human-readable name may be adjusted for higher contrast, e.g 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 a color item | +| Color Name | Note | +|------------|------------------------------------| +| primary | Primary theme color | +| secondary | Secondary theme color | +| itemValue | The state of the linked Color item | ### Icons