Added preset quick load before palette list

This commit is contained in:
Woody 2023-11-09 18:15:04 +01:00
parent 40f544fffc
commit 23374e98ae
No known key found for this signature in database
GPG Key ID: 9872D7F5072789B2

View File

@ -66,6 +66,9 @@ function simplifyUI(doc) {
// Put effects below palett list // Put effects below palett list
gId("Colors").innerHTML += gId("Effects").innerHTML; gId("Colors").innerHTML += gId("Effects").innerHTML;
// Put preset quick load before palette list
gId("Colors").insertBefore(gId("pql"), gId("pall"));
// Hide buttons in top bar // Hide buttons in top bar
gId("buttonNl").style.display = "none"; gId("buttonNl").style.display = "none";
gId("buttonSync").style.display = "none"; gId("buttonSync").style.display = "none";
@ -115,5 +118,4 @@ function finalizeSimpleUI() {
// set correct position of selected and sticky palette // set correct position of selected and sticky palette
Array.from(document.styleSheets[0].cssRules).find(rule => rule.selectorText == "#pallist .lstI.sticky").style.top = "0px"; Array.from(document.styleSheets[0].cssRules).find(rule => rule.selectorText == "#pallist .lstI.sticky").style.top = "0px";
Array.from(document.styleSheets[0].cssRules).find(rule => rule.selectorText == "#pallist .lstI.selected").style.top = "42px"; Array.from(document.styleSheets[0].cssRules).find(rule => rule.selectorText == "#pallist .lstI.selected").style.top = "42px";
} }