From 3482f6ec71fa69aec4fefbd5198f4de1905e968c Mon Sep 17 00:00:00 2001 From: lolodomo Date: Sat, 11 Jun 2022 12:14:16 +0200 Subject: [PATCH] [sitemap] Default color for label and value colors (#1837) Related to openhab/openhab-core#2995 Signed-off-by: Laurent Garnier --- ui/sitemaps.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/sitemaps.md b/ui/sitemaps.md index e5d671e66..f9182349b 100644 --- a/ui/sitemaps.md +++ b/ui/sitemaps.md @@ -569,6 +569,9 @@ Note that `item_name` and `operator` are both optional. If `item_name` is not provided, the Item name will default to the current Item. If an operator is not specified, the operator will default to `==`. +If only a color is specified, that condition is considered as true and that color will be used. +It can be used as a last condition to set a default color that will be used in case any of the other previous conditions is true. + The comparison operators for `labelcolor` and `valuecolor` are the same as for the visibility parameter. **Examples:** @@ -579,6 +582,7 @@ The following three lines are equivalent. Text item=Temperature labelcolor=[>0="blue"] valuecolor=[22="green"] Text item=Temperature labelcolor=[>0="blue"] valuecolor=[==22="green"] Text item=Temperature labelcolor=[>0="blue"] valuecolor=[Temperature==22="green"] +Text item=Temperature labelcolor=[>0="blue", "gray"] valuecolor=[22="green", "gray"] ``` The line below illustrates the importance of operator order: