Skip to content

Commit

Permalink
light: hide colorpicker when color is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mcspr committed Nov 27, 2022
1 parent d664b9d commit 4021c4d
Show file tree
Hide file tree
Showing 22 changed files with 13,332 additions and 13,339 deletions.
Binary file modified code/espurna/data/index.all.html.gz
Binary file not shown.
Binary file modified code/espurna/data/index.curtain.html.gz
Binary file not shown.
Binary file modified code/espurna/data/index.garland.html.gz
Binary file not shown.
Binary file modified code/espurna/data/index.light.html.gz
Binary file not shown.
Binary file modified code/espurna/data/index.lightfox.html.gz
Binary file not shown.
Binary file modified code/espurna/data/index.rfbridge.html.gz
Binary file not shown.
Binary file modified code/espurna/data/index.rfm69.html.gz
Binary file not shown.
Binary file modified code/espurna/data/index.sensor.html.gz
Binary file not shown.
Binary file modified code/espurna/data/index.small.html.gz
Binary file not shown.
Binary file modified code/espurna/data/index.thermostat.html.gz
Binary file not shown.
4,574 changes: 2,287 additions & 2,287 deletions code/espurna/static/index.all.html.gz.h

Large diffs are not rendered by default.

2,084 changes: 1,042 additions & 1,042 deletions code/espurna/static/index.curtain.html.gz.h

Large diffs are not rendered by default.

2,006 changes: 1,003 additions & 1,003 deletions code/espurna/static/index.garland.html.gz.h

Large diffs are not rendered by default.

3,974 changes: 1,987 additions & 1,987 deletions code/espurna/static/index.light.html.gz.h

Large diffs are not rendered by default.

2,810 changes: 1,405 additions & 1,405 deletions code/espurna/static/index.lightfox.html.gz.h

Large diffs are not rendered by default.

2,074 changes: 1,037 additions & 1,037 deletions code/espurna/static/index.rfbridge.html.gz.h

Large diffs are not rendered by default.

2,830 changes: 1,415 additions & 1,415 deletions code/espurna/static/index.rfm69.html.gz.h

Large diffs are not rendered by default.

2,274 changes: 1,137 additions & 1,137 deletions code/espurna/static/index.sensor.html.gz.h

Large diffs are not rendered by default.

1,980 changes: 990 additions & 990 deletions code/espurna/static/index.small.html.gz.h

Large diffs are not rendered by default.

2,049 changes: 1,024 additions & 1,025 deletions code/espurna/static/index.thermostat.html.gz.h

Large diffs are not rendered by default.

9 changes: 1 addition & 8 deletions code/html/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -605,20 +605,13 @@ input::placeholder {
display: none;
}

#light-picker.light-on {
#light-picker.light-color.light-on:not(.light-cct) {
display: block;
opacity: 1;
content-visibility: visible;
contain: style layout paint;
}

#light-picker.light-cct,
#light-picker.light-on.light-cct {
content-visibility: hidden;
opacity: 0;
display: none;
}

#light-cct {
content-visibility: hidden;
}
7 changes: 4 additions & 3 deletions code/html/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -2205,9 +2205,10 @@ function colorPickerState(value) {
}

function colorEnabled(value) {
styleInject([
styleVisible("#light-picker", value)
]);
if (value) {
const picker = document.getElementById("light-picker");
picker.classList.add("light-color");
}

channelVisible({
"r": !value,
Expand Down

0 comments on commit 4021c4d

Please sign in to comment.