mirror of https://github.com/espruino/BangleApps
exit by pressing upper left corner
parent
7f886e79c5
commit
b4b3775b23
|
@ -3,3 +3,4 @@
|
||||||
0.03: Add Color Changing Settings
|
0.03: Add Color Changing Settings
|
||||||
0.04: Add Support For Bangle.js 2
|
0.04: Add Support For Bangle.js 2
|
||||||
0.05: Default full Brightness
|
0.05: Default full Brightness
|
||||||
|
0.06: Press upper left corner to exit on Bangle.js 2
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
On Bangle.js 2, pressing the upper left corner where the red back button would be exits the app if the screen is unlocked.
|
||||||
|
|
|
@ -13,8 +13,14 @@ Bangle.setLCDTimeout(0);
|
||||||
g.reset();
|
g.reset();
|
||||||
g.setColor(settings.bg);
|
g.setColor(settings.bg);
|
||||||
g.fillRect(0,0,g.getWidth(),g.getHeight());
|
g.fillRect(0,0,g.getWidth(),g.getHeight());
|
||||||
|
|
||||||
// Any button turns off
|
// Any button turns off
|
||||||
setWatch(()=>load(), BTN1);
|
setWatch(()=>load(), BTN1);
|
||||||
if (global.BTN2) setWatch(()=>load(), BTN2);
|
if (global.BTN2) setWatch(()=>load(), BTN2);
|
||||||
if (global.BTN3) setWatch(()=>load(), BTN3);
|
if (global.BTN3) setWatch(()=>load(), BTN3);
|
||||||
|
|
||||||
|
// Press upper left corner to exit (where red back button would be)
|
||||||
|
Bangle.setUI({
|
||||||
|
mode : 'custom',
|
||||||
|
back : load
|
||||||
|
});
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"id": "torch",
|
"id": "torch",
|
||||||
"name": "Torch",
|
"name": "Torch",
|
||||||
"shortName": "Torch",
|
"shortName": "Torch",
|
||||||
"version": "0.05",
|
"version": "0.06",
|
||||||
"description": "Turns screen white to help you see in the dark. Select from the launcher or press BTN1,BTN3,BTN1,BTN3 quickly to start when in any app that shows widgets on Bangle.js 1. You can also set the color through the app's setting menu.",
|
"description": "Turns screen white to help you see in the dark. Select from the launcher or press BTN1,BTN3,BTN1,BTN3 quickly to start when in any app that shows widgets on Bangle.js 1. You can also set the color through the app's setting menu.",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"tags": "tool,torch",
|
"tags": "tool,torch",
|
||||||
|
|
Loading…
Reference in New Issue