Minor optimizations

This commit is contained in:
Woody 2023-12-08 11:41:00 +01:00
parent 930a1ae450
commit 21c2316f6b
No known key found for this signature in database
GPG Key ID: 9872D7F5072789B2
2 changed files with 5 additions and 6 deletions

View File

@ -371,7 +371,7 @@ button {
} }
/* Quick load magin for simplified UI */ /* Quick load magin for simplified UI */
#pql.simplified { .simplified #pql {
margin-bottom: 8px; margin-bottom: 8px;
} }
@ -772,8 +772,8 @@ input[type=range]::-moz-range-thumb {
.hd { .hd {
display: var(--bhd); display: var(--bhd);
} }
/* Do not hide labels in simplified mode on small screen widths */ /* Do not hide quick load label in simplified mode on small screen widths */
.simplified > .hd { .simplified #pql .hd {
display: var(--bhd) !important; display: var(--bhd) !important;
} }

View File

@ -3105,17 +3105,16 @@ function simplifyUI() {
} }
// Put preset quick load before palette list and segemts // Put preset quick load before palette list and segemts
gId("Colors").insertBefore(gId("pql"), gId("pall")); gId("Colors").insertBefore(gId("pql"), gId("pall"));
gId("pql").classList.add("simplified");
// Create dropdown for palette list // Create dropdown for palette list
createDropdown("palw", "Change palette"); createDropdown("palw", "Change palette");
createDropdown("fx", "Change effect", [gId("fxFind"), gId("fxlist")]); createDropdown("fx", "Change effect", [gId("fxFind"), gId("fxlist")]);
// Hide pallete label // Hide pallete label
gId("pall").classList.add("hide"); gId("pall").style.display = "none";
gId("Colors").insertBefore(document.createElement("br"), gId("pall")); gId("Colors").insertBefore(document.createElement("br"), gId("pall"));
// Hide effect label // Hide effect label
gId("modeLabel").classList.add("hide"); gId("modeLabel").style.display = "none";
// Hide buttons in top bar // Hide buttons in top bar
gId("buttonNl").style.display = "none"; gId("buttonNl").style.display = "none";