From 8c912f44e517a699fe9749aca45891bd88aba91c Mon Sep 17 00:00:00 2001 From: stweedo <108593831+stweedo@users.noreply.github.com> Date: Thu, 8 Jun 2023 22:58:37 -0500 Subject: [PATCH] [lightswitch] - Update widget.js to use g.getBgColor for inner bulb when off --- apps/lightswitch/widget.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/lightswitch/widget.js b/apps/lightswitch/widget.js index 6b573355b..5b542f509 100644 --- a/apps/lightswitch/widget.js +++ b/apps/lightswitch/widget.js @@ -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);