Skip to content

Commit

Permalink
Updating pxmagic and inserting it in the WLED UI with option to enabl…
Browse files Browse the repository at this point in the history
…e and disable.
  • Loading branch information
ajotanc committed Jul 20, 2023
1 parent 94aeb19 commit 44197d9
Show file tree
Hide file tree
Showing 8 changed files with 3,075 additions and 2,885 deletions.
22 changes: 20 additions & 2 deletions wled00/data/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ button {

.off {
color: var(--c-6) !important;
cursor: default !important;
/* cursor: default !important; */
}

.top .icons, .bot .icons {
Expand Down Expand Up @@ -271,6 +271,20 @@ button {
transform: translate(-50%,-50%);
}

#pxm {
display: none;
width: 100%;
height: 100%;
border: 0;
position: absolute;
}

#ipxm {
width: 100%;
height: 100%;
position: relative;
}

.tab {
background-color: transparent;
color: var(--c-d);
Expand Down Expand Up @@ -798,6 +812,7 @@ input[type=range]::-moz-range-thumb {
text-overflow: ellipsis;
border: 1px solid var(--c-3);
background-color: var(--c-3);
z-index: 9;
}
#segutil .btn-s:hover,
#segutil2 .btn-s:hover,
Expand Down Expand Up @@ -1010,7 +1025,7 @@ textarea {
width: 50px !important;
}

.segname, .pname {
.segname, .pname, .bname {
white-space: nowrap;
text-align: center;
overflow: hidden;
Expand All @@ -1020,6 +1035,9 @@ textarea {
max-width: 170px;
position: relative;
}
.bname {
padding: 0 24px;
}

.segname .flr, .pname .flr {
transform: rotate(0deg);
Expand Down
11 changes: 9 additions & 2 deletions wled00/data/index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
<button id="buttonNl" onclick="toggleNl()"><i class="icons">&#xe2a2;</i><p class="tab-label">Timer</p></button>
<button id="buttonSync" onclick="toggleSync()"><i class="icons">&#xe116;</i><p class="tab-label">Sync</p></button>
<button id="buttonSr" onclick="toggleLiveview()"><i class="icons">&#xe410;</i><p class="tab-label">Peek</p></button>
<button id="buttonPixelMagicTool" onclick="togglePixelMagicTool()"><i class="icons">&#xe2b3;</i><p class="tab-label">Pixel Magic</p></button>
<button id="buttonI" onclick="toggleInfo()"><i class="icons">&#xe066;</i><p class="tab-label">Info</p></button>
<button id="buttonNodes" onclick="toggleNodes()"><i class="icons">&#xe22d;</i><p class="tab-label">Nodes</p></button>
<button onclick="window.location.href=getURL('/settings');"><i class="icons">&#xe0a2;</i><p class="tab-label">Config</p></button>
Expand Down Expand Up @@ -379,8 +380,8 @@
</div>
</div>

<div id="mliveview2D" class="modal">
<div id="kliveview2D" style="width:100%; height:100%">Loading...</div><br>
<div id="mlv2D" class="modal">
<div id="klv2D" style="width:100%; height:100%">Loading...</div>
</div>

<div id="rover" class="modal">
Expand All @@ -392,6 +393,12 @@
<button class="btn" onclick="setLor(2)">Override until reboot</button><br>
<span class="h">For best performance, it is recommended to turn off the streaming source when not in use.</span>
</div>

<div id="mpxm" class="modal">
<button class="btn btn-xs close" onclick="togglePixelMagicTool()"><i class="icons rot45">&#xe18a;</i></button>
<div id="ipxm">Loading...</div>
</div>

<i id="roverstar" class="icons huge" onclick="setLor(0)">&#xe410;</i><br>
<script src="index.js"></script>
</body>
Expand Down
Loading

0 comments on commit 44197d9

Please sign in to comment.