mirror of https://github.com/espruino/BangleApps
[lightswitch] Prevent drawing into app area
parent
797eb12f7b
commit
60de030e92
|
@ -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.
|
||||
|
|
|
@ -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": [
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue