1
0
Fork 0

[lightswitch] Prevent drawing into app area

master
storm64 2022-05-20 00:26:14 +02:00
parent 797eb12f7b
commit 60de030e92
3 changed files with 3 additions and 2 deletions

View File

@ -2,3 +2,4 @@
0.02: Add the option to enable touching the widget only on clock and settings.
0.03: Settings page now uses built-in min/max/wrap (fix #1607)
0.04: Add masking widget input to other apps (using espruino/Espruino#2151), add a oversize option to increase the touch area.
0.05: Prevent drawing into app area.

View File

@ -2,7 +2,7 @@
"id": "lightswitch",
"name": "Light Switch Widget",
"shortName": "Light Switch",
"version": "0.04",
"version": "0.05",
"description": "A fast way to switch LCD backlight on/off, change the brightness and show the lock status. All in one widget.",
"icon": "images/app.png",
"screenshots": [

View File

@ -86,7 +86,7 @@
})(this.image);
// clear widget area
g.reset().clearRect(this.x, this.y, this.x + this.width, this.y + 24);
g.reset().clearRect(this.x, this.y, this.x + this.width, this.y + 23);
// draw shine if backlight is active
if (this.isOn) g.drawImage(atob(icons.shine), this.x, this.y);