mirror of
https://github.com/wled/WLED.git
synced 2025-04-24 06:47:18 +00:00
Add palette list dropdown
This commit is contained in:
parent
0a97717b35
commit
d880f3c628
@ -3032,6 +3032,22 @@ function simplifyUI() {
|
||||
// Put preset quick load before palette list and segemts
|
||||
gId("Colors").insertBefore(gId("pql"), gId("pall"));
|
||||
|
||||
// Create dropdown for palette list
|
||||
let div = document.createElement("div");
|
||||
// Move every child of palw to div
|
||||
while (gId("palw").firstChild) {
|
||||
div.appendChild(gId("palw").firstChild);
|
||||
}
|
||||
div.classList.add("hide");
|
||||
let btn = document.createElement("button");
|
||||
btn.classList.add("btn");
|
||||
btn.innerText = "Change palette";
|
||||
btn.addEventListener("click", () => {
|
||||
div.classList.toggle("hide");
|
||||
});
|
||||
gId("palw").prepend(div);
|
||||
gId("palw").prepend(btn);
|
||||
|
||||
// Hide buttons in top bar
|
||||
gId("buttonNl").style.display = "none";
|
||||
gId("buttonSync").style.display = "none";
|
||||
|
Loading…
x
Reference in New Issue
Block a user