color sliced features and match checkboxes
This commit is contained in:
parent
290ace6f7f
commit
bf1945d02f
3 changed files with 38 additions and 10 deletions
|
|
@ -72,11 +72,14 @@
|
|||
});
|
||||
})
|
||||
};
|
||||
// let color = lmap[label].color.check;
|
||||
// if (color !== undefined) {
|
||||
// console.log({check, color});
|
||||
// check.toggle.style.color = "#f00";
|
||||
// }
|
||||
let color = lmap[label].color.check;
|
||||
if (color !== undefined) {
|
||||
let div = document.createElement('div');
|
||||
div.setAttribute('class', 'color');
|
||||
div.style.backgroundColor = `#${color.toString(16).padStart(6,0)}`;
|
||||
check.toggle.parentNode.appendChild(div);
|
||||
check.toggle.classList.add("color");
|
||||
}
|
||||
}
|
||||
const ctrl = DYN[label];
|
||||
ctrl.group.appendAll(mats);
|
||||
|
|
|
|||
Loading…
Reference in a new issue