[lightswitch] - Update widget.js to use g.getBgColor for inner bulb when off

pull/2800/head
stweedo 2023-06-08 22:58:37 -05:00 committed by GitHub
parent 65d4b410ff
commit 8c912f44e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -57,7 +57,8 @@
);
} else {
// backlight off
g.setColor(0);
let innerColorWhenOff = g.getBgColor();
g.setColor(innerColorWhenOff);
}
// draw circle
g.drawImage(atob("CwuBAB8H8f9/////////f8fwfAA="), this.x + 6, this.y + 6);