From 4093b0dc5b5aa25c6ab3e93bf5e513440f59ad88 Mon Sep 17 00:00:00 2001 From: Laurent Garnier Date: Fri, 1 Nov 2024 14:57:01 +0100 Subject: [PATCH] [BasicUI] Implement new sitemap element Colortemperaturepicker Related to openhab/openhab-core#3891 Signed-off-by: Laurent Garnier --- .../snippets-src/colortemppicker.html | 37 +++ .../snippets-src/main.html | 10 + .../render/ColortemppickerRenderer.java | 214 ++++++++++++++++++ .../basic/internal/servlet/WebAppServlet.java | 2 +- .../org.openhab.ui.basic/web-src/_layout.scss | 95 +++++++- .../org.openhab.ui.basic/web-src/smarthome.js | 206 +++++++++++++++++ 6 files changed, 562 insertions(+), 2 deletions(-) create mode 100644 bundles/org.openhab.ui.basic/snippets-src/colortemppicker.html create mode 100644 bundles/org.openhab.ui.basic/src/main/java/org/openhab/ui/basic/internal/render/ColortemppickerRenderer.java diff --git a/bundles/org.openhab.ui.basic/snippets-src/colortemppicker.html b/bundles/org.openhab.ui.basic/snippets-src/colortemppicker.html new file mode 100644 index 0000000000..26081591cf --- /dev/null +++ b/bundles/org.openhab.ui.basic/snippets-src/colortemppicker.html @@ -0,0 +1,37 @@ +
+ + %icon_snippet% + + + %label% + + + %value% + +
+ + + + + + +
+
diff --git a/bundles/org.openhab.ui.basic/snippets-src/main.html b/bundles/org.openhab.ui.basic/snippets-src/main.html index 5ebac4ec22..6a7c2ba489 100644 --- a/bundles/org.openhab.ui.basic/snippets-src/main.html +++ b/bundles/org.openhab.ui.basic/snippets-src/main.html @@ -53,6 +53,16 @@ +