mirror of
https://github.com/wled/WLED.git
synced 2025-07-27 12:46:38 +00:00
Optimisations.
This commit is contained in:
parent
37af48f3fb
commit
b637398a9c
@ -1322,6 +1322,7 @@ void WS2812FX::setSegment(uint8_t n, uint16_t i1, uint16_t i2, uint8_t grouping,
|
|||||||
// disabled segments should get removed using purgeSegments()
|
// disabled segments should get removed using purgeSegments()
|
||||||
DEBUG_PRINT(F("-- Segment ")); DEBUG_PRINT(n); DEBUG_PRINTLN(F(" marked inactive."));
|
DEBUG_PRINT(F("-- Segment ")); DEBUG_PRINT(n); DEBUG_PRINTLN(F(" marked inactive."));
|
||||||
seg.stop = 0;
|
seg.stop = 0;
|
||||||
|
seg.options = 0b0000000000000101; // on & selected
|
||||||
//if (seg.name) {
|
//if (seg.name) {
|
||||||
// delete[] seg.name;
|
// delete[] seg.name;
|
||||||
// seg.name = nullptr;
|
// seg.name = nullptr;
|
||||||
|
@ -128,12 +128,13 @@ button {
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icons.on {
|
.on {
|
||||||
color: var(--c-g);
|
color: var(--c-g) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icons.off {
|
.off {
|
||||||
color: var(--c-6);
|
color: var(--c-6) !important;
|
||||||
|
cursor: default !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.top .icons, .bot .icons {
|
.top .icons, .bot .icons {
|
||||||
@ -981,7 +982,7 @@ textarea {
|
|||||||
|
|
||||||
.segname, .pname {
|
.segname, .pname {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
cursor: pointer;
|
/*cursor: pointer;*/
|
||||||
text-align: center;
|
text-align: center;
|
||||||
overflow: clip;
|
overflow: clip;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
@ -1690,9 +1690,9 @@ function makeSeg()
|
|||||||
|
|
||||||
function resetUtil(off=false)
|
function resetUtil(off=false)
|
||||||
{
|
{
|
||||||
gId('segutil').innerHTML = '<div class="seg btn btn-s" style="border-radius:24px;padding:0;">'
|
gId('segutil').innerHTML = `<div class="seg btn btn-s ${off?'off':''}" style="border-radius:24px;padding:0;">`
|
||||||
+ '<label class="check schkl"><input type="checkbox" id="selall" onchange="selSegAll(this)"><span class="checkmark"></span></label>'
|
+ '<label class="check schkl"><input type="checkbox" id="selall" onchange="selSegAll(this)"><span class="checkmark"></span></label>'
|
||||||
+ `<div class="segname" ${off?'style="color:var(--c-6);"':'onclick="makeSeg()"'}><i class="icons btn-icon ${off?'off':''}"></i>Add segment</div></div>`;
|
+ `<div class="segname" ${off?'':'onclick="makeSeg()"'}><i class="icons btn-icon"></i>Add segment</div></div>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function makePlSel(el, incPl=false)
|
function makePlSel(el, incPl=false)
|
||||||
|
3237
wled00/html_ui.h
3237
wled00/html_ui.h
File diff suppressed because it is too large
Load Diff
@ -8,7 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// version code in format yymmddb (b = daily build)
|
// version code in format yymmddb (b = daily build)
|
||||||
#define VERSION 2212050
|
#define VERSION 2212090
|
||||||
|
|
||||||
//uncomment this if you have a "my_config.h" file you'd like to use
|
//uncomment this if you have a "my_config.h" file you'd like to use
|
||||||
//#define WLED_USE_MY_CONFIG
|
//#define WLED_USE_MY_CONFIG
|
||||||
|
Loading…
x
Reference in New Issue
Block a user