Fix for palettes.
This commit is contained in:
parent
d8d9259c36
commit
06fe7323eb
@ -1037,7 +1037,7 @@ function updateUI()
|
||||
gId('kwrap').style.display = (hasRGB && !hasCCT && ccfg.picker) ? "block":"none"; // Kelvin slider
|
||||
gId('rgbwrap').style.display = (hasRGB && ccfg.rgb) ? "block":"none"; // RGB sliders
|
||||
gId('qcs-w').style.display = (hasRGB && ccfg.quick) ? "block":"none"; // quick selection
|
||||
gId('palw').style.display = hasRGB ? "block":"none"; // palettes
|
||||
//gId('palw').style.display = hasRGB ? "block":"none"; // palettes
|
||||
|
||||
updatePA();
|
||||
updatePSliders();
|
||||
@ -1345,10 +1345,10 @@ function setSliderAndColorControl(idx, applyDef=false)
|
||||
|
||||
// set palette on/off
|
||||
var palw = gId("palw"); // wrapper
|
||||
var pall = gId("pall"); // list
|
||||
var pall = gId("pall"); // label
|
||||
// if not controlDefined or palette has a value
|
||||
if ((!controlDefined) || (paOnOff.length>0 && paOnOff[0]!="" && isNaN(paOnOff[0]))) {
|
||||
palw.style.display = "inline-block";
|
||||
palw.style.display = hasRGB ? "inline-block" : "none";
|
||||
if (paOnOff.length>0 && paOnOff[0].indexOf("=")>0) {
|
||||
// embeded default values
|
||||
var dPos = paOnOff[0].indexOf("=");
|
||||
|
1073
wled00/html_ui.h
1073
wled00/html_ui.h
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user