Fixed ESP8266 async preset loading
Improved name label visibility on gray images
This commit is contained in:
parent
779fd78091
commit
51d8344515
@ -101,7 +101,7 @@ button {
|
||||
position: fixed;
|
||||
bottom: calc(var(--bh) + 6px);
|
||||
right: 6px;
|
||||
color: var(--c-8); /* should remain bright (--c-d) with dark shadow (see below) to be legible on gray background */
|
||||
color: var(--c-8); /* set bright (--c-d) with dark text shadow (see below) to be legible on gray background (in image) */
|
||||
cursor: pointer;
|
||||
writing-mode: vertical-rl;
|
||||
/* transform: rotate(180deg); */
|
||||
@ -1045,8 +1045,8 @@ textarea {
|
||||
/*box-shadow: 0 0 0 5px var(--c-d);*/
|
||||
}
|
||||
|
||||
.qcs/*, #namelabel*/ { /* text shadow for name to be legible on grey backround */
|
||||
text-shadow: -1px -1px 0 var(--c-4), 1px -1px 0 var(--c-4), -1px 1px 0 var(--c-4), 1px 1px 0 var(--c-4);
|
||||
.qcs, #namelabel { /* text shadow for name to be legible on grey backround */
|
||||
text-shadow: -1px -1px 0 var(--c-1), 1px -1px 0 var(--c-1), -1px 1px 0 var(--c-1), 1px 1px 0 var(--c-1);
|
||||
}
|
||||
|
||||
.psts {
|
||||
|
@ -182,6 +182,7 @@ function loadBg(iUrl)
|
||||
bg.style.opacity = a;
|
||||
bg.style.backgroundImage = `url(${img.src})`;
|
||||
img = null;
|
||||
gId('namelabel').style.color = "var(--c-c)"; // improve namelabel legibility on background image
|
||||
});
|
||||
}
|
||||
|
||||
@ -1494,7 +1495,8 @@ function requestJson(command=null)
|
||||
if (tn != tr) command.transition = tn;
|
||||
}
|
||||
req = JSON.stringify(command);
|
||||
if (req.length > 1430) useWs = false; // do not send very long requests over websocket
|
||||
if (req.length > 1340) useWs = false; // do not send very long requests over websocket
|
||||
if (req.length > 500 && lastinfo && lastinfo.arch == "esp8266") useWs = false; // esp8266 can only handle 500 bytes
|
||||
};
|
||||
|
||||
if (useWs) {
|
||||
|
2818
wled00/html_ui.h
2818
wled00/html_ui.h
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user