Skip to content

Commit 44197d9

Browse files
committed
Updating pxmagic and inserting it in the WLED UI with option to enable and disable.
1 parent 94aeb19 commit 44197d9

File tree

8 files changed

+3075
-2885
lines changed

8 files changed

+3075
-2885
lines changed

wled00/data/index.css

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ button {
134134

135135
.off {
136136
color: var(--c-6) !important;
137-
cursor: default !important;
137+
/* cursor: default !important; */
138138
}
139139

140140
.top .icons, .bot .icons {
@@ -271,6 +271,20 @@ button {
271271
transform: translate(-50%,-50%);
272272
}
273273

274+
#pxm {
275+
display: none;
276+
width: 100%;
277+
height: 100%;
278+
border: 0;
279+
position: absolute;
280+
}
281+
282+
#ipxm {
283+
width: 100%;
284+
height: 100%;
285+
position: relative;
286+
}
287+
274288
.tab {
275289
background-color: transparent;
276290
color: var(--c-d);
@@ -798,6 +812,7 @@ input[type=range]::-moz-range-thumb {
798812
text-overflow: ellipsis;
799813
border: 1px solid var(--c-3);
800814
background-color: var(--c-3);
815+
z-index: 9;
801816
}
802817
#segutil .btn-s:hover,
803818
#segutil2 .btn-s:hover,
@@ -1010,7 +1025,7 @@ textarea {
10101025
width: 50px !important;
10111026
}
10121027

1013-
.segname, .pname {
1028+
.segname, .pname, .bname {
10141029
white-space: nowrap;
10151030
text-align: center;
10161031
overflow: hidden;
@@ -1020,6 +1035,9 @@ textarea {
10201035
max-width: 170px;
10211036
position: relative;
10221037
}
1038+
.bname {
1039+
padding: 0 24px;
1040+
}
10231041

10241042
.segname .flr, .pname .flr {
10251043
transform: rotate(0deg);

wled00/data/index.htm

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
<button id="buttonNl" onclick="toggleNl()"><i class="icons">&#xe2a2;</i><p class="tab-label">Timer</p></button>
6666
<button id="buttonSync" onclick="toggleSync()"><i class="icons">&#xe116;</i><p class="tab-label">Sync</p></button>
6767
<button id="buttonSr" onclick="toggleLiveview()"><i class="icons">&#xe410;</i><p class="tab-label">Peek</p></button>
68+
<button id="buttonPixelMagicTool" onclick="togglePixelMagicTool()"><i class="icons">&#xe2b3;</i><p class="tab-label">Pixel Magic</p></button>
6869
<button id="buttonI" onclick="toggleInfo()"><i class="icons">&#xe066;</i><p class="tab-label">Info</p></button>
6970
<button id="buttonNodes" onclick="toggleNodes()"><i class="icons">&#xe22d;</i><p class="tab-label">Nodes</p></button>
7071
<button onclick="window.location.href=getURL('/settings');"><i class="icons">&#xe0a2;</i><p class="tab-label">Config</p></button>
@@ -379,8 +380,8 @@
379380
</div>
380381
</div>
381382

382-
<div id="mliveview2D" class="modal">
383-
<div id="kliveview2D" style="width:100%; height:100%">Loading...</div><br>
383+
<div id="mlv2D" class="modal">
384+
<div id="klv2D" style="width:100%; height:100%">Loading...</div>
384385
</div>
385386

386387
<div id="rover" class="modal">
@@ -392,6 +393,12 @@
392393
<button class="btn" onclick="setLor(2)">Override until reboot</button><br>
393394
<span class="h">For best performance, it is recommended to turn off the streaming source when not in use.</span>
394395
</div>
396+
397+
<div id="mpxm" class="modal">
398+
<button class="btn btn-xs close" onclick="togglePixelMagicTool()"><i class="icons rot45">&#xe18a;</i></button>
399+
<div id="ipxm">Loading...</div>
400+
</div>
401+
395402
<i id="roverstar" class="icons huge" onclick="setLor(0)">&#xe410;</i><br>
396403
<script src="index.js"></script>
397404
</body>

0 commit comments

Comments
 (0)