From 29e849cd9cf5b3b84db56f9165f79708e65d2c78 Mon Sep 17 00:00:00 2001 From: mueller-ma Date: Thu, 2 Mar 2023 16:34:33 +0100 Subject: [PATCH] Add theme colors (#2008) These colors have been added in Android recently: https://github.com/openhab/openhab-android/issues/3248 Feature requests for iOS and Basic UI have been created: * https://github.com/openhab/openhab-ios/discussions/711 * https://github.com/openhab/openhab-webui/issues/1716 Signed-off-by: mueller-ma --- ui/sitemaps.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/sitemaps.md b/ui/sitemaps.md index 56b160329..beb7a7539 100644 --- a/ui/sitemaps.md +++ b/ui/sitemaps.md @@ -656,6 +656,9 @@ 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 the Android app also accepts the keywords `primary` and `secondary` as colors. +They will be mapped to the corresponding colors of the UI theme. + ### Icons openHAB allows a set of icons to be assigned to the different states of an Item and therefore to be presented in a Sitemap.