Skip to content

Commit 3659040

Browse files
authored
[sitemap] New Colortemperaturepicker element (#2412)
* [sitemap] New Colortemperaturepicker element Also include a small change of the Colorpicker element. Related to openhab/openhab-core#3891 Related to openhab/openhab-webui#2873 Signed-off-by: Laurent Garnier <[email protected]> * Review comments Signed-off-by: Laurent Garnier <[email protected]> --------- Signed-off-by: Laurent Garnier <[email protected]>
1 parent c83c2e2 commit 3659040

3 files changed

+25
-1
lines changed
1.65 KB
Loading
Loading

ui/sitemaps.md

+25-1
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ The following element types may be used in a Sitemap definition file.
148148
| [Button](#element-type-button) | Renders a button inside a Buttongrid that is used to send commands to a given Item. |
149149
| [Chart](#element-type-chart) | Adds a time-series chart object for [persisted](persistence.html) data. |
150150
| [Colorpicker](#element-type-colorpicker) | Allows the user to choose a color from a color wheel. |
151+
| [Colortemperaturepicker](#element-type-colortemperaturepicker) | Allows the user to choose a color temperature from a white color gradient. |
151152
| [Default](#element-type-default) | Renders an Item in the default UI representation specified by the type of the given Item. |
152153
| [Frame](#element-type-frame) | Establishes an area containing various other Sitemap elements. |
153154
| [Group](#element-type-group) | Concentrates all elements of a given group in a nested block. |
@@ -454,7 +455,9 @@ Colorpicker item=<itemname> [label="<labelname>"] [icon=<iconref>] [staticIcon=<
454455

455456
This element is a combined control for something like a rgb or rgbw light where you can adjust brightness as well es the color hue.
456457
The down-button decreases brightness to zero and switches the light off. The up-button sets brightness to full but keeps the previous color (hue).
457-
The middle button opens an overlay to finetune your color. A color wheel let you pick the hue and a slider allows to set the brightness.
458+
The middle button opens an overlay to fine-tune your color when you click on it.
459+
In the overlay, a color wheel lets you pick the hue and a slider allows to set the brightness.
460+
The content of this middle button can also show what is the current color.
458461

459462
**Example:**
460463

@@ -464,6 +467,27 @@ Colorpicker item=LR_LEDLight_Color label="LED Light Color" staticIcon=colorwheel
464467

465468
![Presentation of the Colorpicker element in BasicUI](images/sitemap_demo_colorpicker.png)
466469

470+
### Element Type 'Colortemperaturepicker'
471+
472+
```java
473+
Colortemperaturepicker item=<itemname> [label="<labelname>"] [icon=<iconref>] [staticIcon=<iconref>]
474+
```
475+
476+
This element is a control for something like a rgb or rgbw light where you can adjust the color temperature.
477+
The button opens an overlay to fine-tune your color temperature when you click on it.
478+
In the overlay, a white color gradient lets you pick and set the color temperature.
479+
The content of this button can also show what is the current color temperature.
480+
481+
- `minValue` and `maxValue` limit the possible range of the value (both included in the range).
482+
483+
**Example:**
484+
485+
```java
486+
Colortemperaturepicker item=LR_LEDLight_ColorTemp label="LED Light Color Temperature" staticIcon=colorwheel
487+
```
488+
489+
![Presentation of the Colortemperaturepicker element in BasicUI](images/sitemap_demo_colortemperaturepicker.png)
490+
467491
### Element Type 'Input'
468492

469493
```java

0 commit comments

Comments
 (0)