Easter egg added.

This commit is contained in:
Blaz Kristan 2022-03-13 14:04:29 +01:00
parent 31981b9080
commit 3f6691dcd5
5 changed files with 1691 additions and 1692 deletions

View File

@ -538,9 +538,9 @@ img {
top: 0; bottom: 0; top: 0; bottom: 0;
left: 0; right: 0; left: 0; right: 0;
} }
#rwrap .sliderdisplay { background: linear-gradient(90deg, #000 0%, #f00); } #rwrap .sliderdisplay { --bg: #f00; background: linear-gradient(90deg, #000 0%, #f00); }
#gwrap .sliderdisplay { background: linear-gradient(90deg, #000 0%, #0f0); } #gwrap .sliderdisplay { --bg: #0f0; background: linear-gradient(90deg, #000 0%, #0f0); }
#bwrap .sliderdisplay { background: linear-gradient(90deg, #000 0%, #00f); } #bwrap .sliderdisplay { --bg: #00f; background: linear-gradient(90deg, #000 0%, #00f); }
#wwrap .sliderdisplay { background: linear-gradient(90deg, #000 0%, #fff); } #wwrap .sliderdisplay { background: linear-gradient(90deg, #000 0%, #fff); }
#kwrap .sliderdisplay { background: linear-gradient(90deg, #ff8f1f 0%, #fff 50%, #cbdbff); } #kwrap .sliderdisplay { background: linear-gradient(90deg, #ff8f1f 0%, #fff 50%, #cbdbff); }
#wbal .sliderdisplay { background: linear-gradient(90deg, #ff8f1f 0%, #fff 50%, #cbdbff); } #wbal .sliderdisplay { background: linear-gradient(90deg, #ff8f1f 0%, #fff 50%, #cbdbff); }
@ -976,6 +976,7 @@ textarea {
height: 22px; height: 22px;
width: 22px; width: 22px;
border-radius: 50%; border-radius: 50%;
background-color: transparent;
} }
.checkmark { .checkmark {

View File

@ -157,6 +157,7 @@
</div> </div>
<p class="labels h" id="cslLabel"></p> <p class="labels h" id="cslLabel"></p>
<div id="hexw"> <div id="hexw">
<i class="icons sel-icon" onclick="tglRgb()">&#xe22d;<!--&#xe2b3;--></i>
<input id="hexc" type="text" class="noslide" onkeydown="hexEnter()" autocomplete="off" maxlength="8" /> <input id="hexc" type="text" class="noslide" onkeydown="hexEnter()" autocomplete="off" maxlength="8" />
<button id="hexcnf" class="btn btn-xs" onclick="fromHex();"><i class="icons btn-icon">&#xe390;</i></button> <button id="hexcnf" class="btn btn-xs" onclick="fromHex();"><i class="icons btn-icon">&#xe390;</i></button>
</div> </div>

View File

@ -75,29 +75,17 @@ function applyCfg()
cTheme(cfg.theme.base === "light"); cTheme(cfg.theme.base === "light");
var bg = cfg.theme.color.bg; var bg = cfg.theme.color.bg;
if (bg) sCol('--c-1', bg); if (bg) sCol('--c-1', bg);
if (lastinfo.leds) updateUI(); // update component visibility
/*
var ccfg = cfg.comp.colors;
gId('hexw').style.display = ccfg.hex ? "block":"none";
gId('picker').style.display = (hasRGB && ccfg.picker) ? "block":"none";
gId('vwrap').style.display = (hasRGB && ccfg.picker) ? "block":"none";
gId('kwrap').style.display = (hasRGB && !hasCCT && ccfg.picker) ? "block":"none";
gId('rgbwrap').style.display = (hasRGB && ccfg.rgb) ? "block":"none";
gId('qcs-w').style.display = (hasRGB && ccfg.quick) ? "block":"none";
gId('palw').style.display = hasRGB ? "block":"none";
*/
var l = cfg.comp.labels; var l = cfg.comp.labels;
var e = d.querySelectorAll('.tab-label'); var e = d.querySelectorAll('.tab-label');
for (let i of e) i.style.display = l ? "block":"none"; for (let i of e) i.style.display = l ? "block":"none";
//e = d.querySelector('.hd');
//e.style.display = l ? "block":"none";
sCol('--tbp',l ? "14px 14px 10px 14px":"10px 22px 4px 22px"); sCol('--tbp',l ? "14px 14px 10px 14px":"10px 22px 4px 22px");
sCol('--bbp',l ? "9px 0 7px 0":"10px 0 4px 0"); sCol('--bbp',l ? "9px 0 7px 0":"10px 0 4px 0");
sCol('--bhd',l ? "block":"none"); sCol('--bhd',l ? "block":"none"); // show/hide labels
sCol('--bmt',l ? "0px":"5px"); sCol('--bmt',l ? "0px":"5px");
sCol('--t-b', cfg.theme.alpha.tab); sCol('--t-b', cfg.theme.alpha.tab);
size(); size();
localStorage.setItem('wledUiCfg', JSON.stringify(cfg)); localStorage.setItem('wledUiCfg', JSON.stringify(cfg));
if (lastinfo.leds) updateUI(); // update component visibility
} }
function tglHex() function tglHex()
@ -118,6 +106,12 @@ function tglLabels()
applyCfg(); applyCfg();
} }
function tglRgb()
{
cfg.comp.colors.rgb = !cfg.comp.colors.rgb;
applyCfg();
}
function cTheme(light) { function cTheme(light) {
if (light) { if (light) {
sCol('--c-1','#eee'); sCol('--c-1','#eee');

File diff suppressed because it is too large Load Diff

View File

@ -8,7 +8,7 @@
*/ */
// version code in format yymmddb (b = daily build) // version code in format yymmddb (b = daily build)
#define VERSION 2203121 #define VERSION 2203131
//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