Fix for palettes.

This commit is contained in:
Blaz Kristan 2022-03-09 19:03:39 +01:00
parent d8d9259c36
commit 06fe7323eb
2 changed files with 539 additions and 540 deletions

View File

@ -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("=");

File diff suppressed because it is too large Load Diff