diff --git a/wled00/FX.cpp b/wled00/FX.cpp index 68522bf0..718c1f3c 100644 --- a/wled00/FX.cpp +++ b/wled00/FX.cpp @@ -2910,7 +2910,7 @@ uint16_t WS2812FX::mode_starburst(void) { uint16_t WS2812FX::mode_exploding_fireworks(void) { //allocate segment data - uint16_t numSparks = min(2 + (SEGLEN >> 2), MAX_SPARKS); // max 58 for 32 segment ESP32, 20 for 18 segment ESP8266 + uint16_t numSparks = min(2 + (SEGLEN >> 1), MAX_SPARKS); // max 58 for 32 segment ESP32, 20 for 18 segment ESP8266 uint16_t dataSize = sizeof(spark) * numSparks; if (!SEGENV.allocateData(dataSize)) return mode_static(); //allocation failed diff --git a/wled00/FX.h b/wled00/FX.h index 0ef42975..83632150 100644 --- a/wled00/FX.h +++ b/wled00/FX.h @@ -53,7 +53,7 @@ /* each segment uses 52 bytes of SRAM memory, so if you're application fails because of insufficient memory, decreasing MAX_NUM_SEGMENTS may help */ #ifdef ESP8266 - #define MAX_NUM_SEGMENTS 18 + #define MAX_NUM_SEGMENTS 16 /* How many color transitions can run at once */ #define MAX_NUM_TRANSITIONS 8 /* How much data bytes all segments combined may allocate */ diff --git a/wled00/data/index.css b/wled00/data/index.css index d21b893c..f27024ac 100644 --- a/wled00/data/index.css +++ b/wled00/data/index.css @@ -1,6 +1,6 @@ @font-face { font-family: "WIcons"; - src: url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAABMkAAsAAAAAEtgAAQACAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgD50AIWNtYXAAAAFoAAABBAAAAQTVan0qZ2FzcAAAAmwAAAAIAAAACAAAABBnbHlmAAACdAAADewAAA3sm6svT2hlYWQAABBgAAAANgAAADYb/Mf8aGhlYQAAEJgAAAAkAAAAJAcYA1FobXR4AAAQvAAAAHAAAABwZAAMiWxvY2EAABEsAAAAOgAAADowHizsbWF4cAAAEWgAAAAgAAAAIAAmAF1uYW1lAAARiAAAAXoAAAF62zUFRXBvc3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mHuwYvvxPverL9eSvszXNjUXrkbqcGOVW2bEbDGKi3MLVTWzzWHF54Bu/2rA1qko6l9fFgVbBurfVBWFFlVW1ugxOwcs+8W//FcUZJieLl9WXA8eGL5crB7fhOMyxl8bjQWGjB1bW/ok6Ucqensr7F8H7utsmdqoHmz99rvyeE/Pz7u64mvVXLjyY8v8j5XhZeH3aPX75dpiO5eN/OzwcG7zkflt/sd5e7YcqbOowfRg22R5585at2vXX87W1Y0gQ079497eYT1EkyoEqMYABmHd8QvKGrRG6bJYTDCCZYGEWcm5G1jXM2i54Y9WtiBuklP57YtBZMAWlu2fYzDM7Q+5FmxKS3Oz5jwK6IactbWPowuQgNyHluKlaw9wnbOmtuajo/VSw9FrBSRwMcuUV2ZwFhh6s7hsqriWCsgA2s3nFcri4I7O+asxwxZbtLL03E9bhcR6Yz9mIbF0U96K0xGA7bx9y+l2//73j+H2i0EGd27uAVNI/WhCYuWqIDaYxads0lcVFV+dOlHmBx/qO7c6/uZX0tReUtJQv64y3adAvX6xDezAX/8Wm8Cgh/95O9OxsNCYnsXWQ+7pCz8/NMZ57ZAIGEdTw+ap8V+I3NUVe375wiv+lccqj172X7Yw5gJAUQGYPQ6QyxRfgeC+Qc5WnAMCAHFv6TJtet3pn/83b4YCAIBv35ofpTRyt5PjZEwT8KYAEQK8nFgBcE/yUwn2oqHSBKoEG7KZQLMpjo5uha/PI2yuBWOCTSDZajpqQ68+Za18jgGgYMT8nBhjKcFrKCYF6yKSZRLF5tR5YKhUzzNWM52mBvuPMiL7xPx4UaRgFiJZAVFscZ2HUIhUPcEaH5WWDvvmvdPfl5KaCvO8o1+fFCBb6hvuLz8lMROwfjPN8iar90RCCiRCJr3ugqHf6LqgUYYs5hzvu9tMIOUr/xpvRsNVvdZ/p+mB8n7V2Spo0T+aRhPpNhsNFOqxoE2u0suqTipgx58IJA0AAAA=) format('woff'); } :root { @@ -166,6 +166,20 @@ button { color: var(--c-d); } +.edit-icon { + position: absolute; + right: -26px; + top: 10px; + display: none; +} + +.search-icon { + position: absolute; + left: 8px; + top: 10px; + pointer-events: none; +} + .search-cancel-icon { position: absolute; right: 8px; @@ -695,6 +709,7 @@ input[type=text] { } .stxt { + display: none; margin-top: 6px !important; } @@ -742,6 +757,12 @@ input[type=number]::-webkit-outer-spin-button { cursor: pointer; } +.segntxt { + max-width: 160px; + overflow: hidden; + text-overflow: clip; +} + .pname { width: 208px; padding: 8px 0; @@ -791,7 +812,7 @@ input[type=number]::-webkit-outer-spin-button { .cnf-s { position: absolute; - top: 223px; + bottom: 100px; right: 23px; padding: 7px 22px; } @@ -808,7 +829,7 @@ input[type=number]::-webkit-outer-spin-button { .half { padding: 7.5px; - top: 113px; + bottom: 35px; } .del { @@ -1026,9 +1047,6 @@ input[type="text"].search { padding: 8px 8px 9px 38px; margin: 6px auto 0 auto; text-align: left; - background: url("data:image/svg+xml;utf8,") - no-repeat 10px 10px; - background-size: 20px; background-color: var(--c-3); } diff --git a/wled00/data/index.js b/wled00/data/index.js index 1c3e442b..c2467b6f 100644 --- a/wled00/data/index.js +++ b/wled00/data/index.js @@ -578,8 +578,9 @@ function populateSegments(s) -
- ${inst.n ? inst.n : "Segment "+i} +
+
${inst.n ? inst.n : "Segment "+i}
+
@@ -650,7 +651,7 @@ function populateSegments(s) function populateEffects(effects) { var html = ``; +
`; effects.shift(); //remove solid for (let i = 0; i < effects.length; i++) { @@ -696,7 +697,7 @@ function populatePalettes(palettes) }); var html = ``; +
`; for (let i = 0; i < palettes.length; i++) { html += generateListItemHtml( 'palette', @@ -1259,6 +1260,7 @@ function makeSeg() { var cn = `
New segment ${lowestUnused} +

@@ -1484,6 +1486,12 @@ function tglCs(i){ d.getElementById(`p${i}o2`).style.display = !pss? "block" : "none"; } +function tglSegn(s) +{ + d.getElementById(`seg${s}t`).style.display = + (window.getComputedStyle(d.getElementById(`seg${s}t`)).display === "none") ? "inline":"none"; +} + function selSegEx(s) { var obj = {"seg":[]}; @@ -1958,7 +1966,10 @@ function expand(i,a) if (!a) expanded[i] = !expanded[i]; d.getElementById('seg' +i).style.display = (expanded[i]) ? "block":"none"; d.getElementById('sege' +i).style.transform = (expanded[i]) ? "rotate(180deg)":"rotate(0deg)"; - if (i < 100) return; //no preset, we are done + if (i < 100) { + d.getElementById(`seg${i}nedit`).style.display = (expanded[i]) ? "inline":"none"; + return; //no preset, we are done + } var p = i-100; d.getElementById(`p${p}o`).style.background = (expanded[i] || p != currentPreset)?"var(--c-2)":"var(--c-6)"; diff --git a/wled00/data/settings_ui.htm b/wled00/data/settings_ui.htm index ea684d23..90bb43ec 100644 --- a/wled00/data/settings_ui.htm +++ b/wled00/data/settings_ui.htm @@ -208,7 +208,7 @@
-
+

diff --git a/wled00/html_settings.h b/wled00/html_settings.h index 5b253156..fc450e17 100644 --- a/wled00/html_settings.h +++ b/wled00/html_settings.h @@ -195,11 +195,12 @@ name="viewport" content="width=500">UI Settings