[basicui] Implement color management for setpoint widgets (#147)
Fix openhab/openhab-core#1234 Signed-off-by: Laurent Garnier <lg.hc@free.fr>pull/149/head
parent
6d752a30f9
commit
e1c150bfe1
|
@ -2,10 +2,10 @@
|
|||
<span class="mdl-form__icon">
|
||||
<img data-icon="%category%" src="../icon/%category%?state=%state%&format=%icon_type%&anyFormat=true" />
|
||||
</span>
|
||||
<span class="mdl-form__label">
|
||||
<span %labelstyle% class="mdl-form__label">
|
||||
%label%
|
||||
</span>
|
||||
<span class="mdl-form__value mdl-form__value--setpoint">%value%</span>
|
||||
<span %valuestyle% class="mdl-form__value mdl-form__value--setpoint">%value%</span>
|
||||
<div
|
||||
class="mdl-form__control mdl-form__setpoint"
|
||||
data-control-type="setpoint"
|
||||
|
|
|
@ -936,6 +936,10 @@
|
|||
_t.valueNode.innerHTML = value;
|
||||
};
|
||||
|
||||
_t.setValueColor = function(color) {
|
||||
_t.valueNode.style.color = color;
|
||||
};
|
||||
|
||||
function onMouseDown(up, event) {
|
||||
var
|
||||
value = _t.value + ((up === true) ? _t.step : -_t.step );
|
||||
|
|
Loading…
Reference in New Issue