mirror of https://github.com/espruino/BangleApps
swipe to exit
parent
d49728fa63
commit
dcb72d4445
|
@ -4,3 +4,4 @@
|
|||
0.04: Support new fast app switching
|
||||
0.05: Allow to directly eval apps instead of loading
|
||||
0.06: Cache apps for faster start
|
||||
0.07: Add swipe-to-exit
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
const s = require("Storage");
|
||||
const settings = s.readJSON("launch.json", true) || { showClocks: true, fullscreen: false,direct:false,oneClickExit:false };
|
||||
const settings = s.readJSON("launch.json", true) || { showClocks: true, fullscreen: false,direct:false,swipeExit:false,oneClickExit:false,fastload:false };
|
||||
if (!settings.fullscreen) {
|
||||
Bangle.loadWidgets();
|
||||
Bangle.drawWidgets();
|
||||
|
@ -179,6 +179,7 @@
|
|||
var i = YtoIdx(e.y);
|
||||
selectItem(i, e);
|
||||
},
|
||||
swipe: (h,_) => { if(settings.swipeExit && h==1) { returnToClock(); } },
|
||||
});
|
||||
const returnToClock = function() {
|
||||
loadApp(".bootcde");
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"id": "iconlaunch",
|
||||
"name": "Icon Launcher",
|
||||
"shortName" : "Icon launcher",
|
||||
"version": "0.06",
|
||||
"version": "0.07",
|
||||
"icon": "app.png",
|
||||
"description": "A launcher inspired by smartphones, with an icon-only scrollable menu.",
|
||||
"tags": "tool,system,launcher",
|
||||
|
|
|
@ -2,7 +2,11 @@
|
|||
(function(back) {
|
||||
let settings = Object.assign({
|
||||
showClocks: true,
|
||||
fullscreen: false
|
||||
fullscreen: false,
|
||||
direct: false,
|
||||
oneClickExit: false,
|
||||
swipeExit: false,
|
||||
fastload: false
|
||||
}, require("Storage").readJSON("launch.json", true) || {});
|
||||
|
||||
let fonts = g.getFonts();
|
||||
|
@ -29,6 +33,10 @@
|
|||
value: settings.oneClickExit == true,
|
||||
onchange: (m) => { save("oneClickExit", m) }
|
||||
},
|
||||
/*LANG*/"Swipe exit": {
|
||||
value: settings.swipeExit == true,
|
||||
onchange: m => { save("swipeExit", m) }
|
||||
},
|
||||
/*LANG*/"Fastload": {
|
||||
value: settings.fastload == true,
|
||||
onchange: (m) => { save("fastload", m) }
|
||||
|
|
Loading…
Reference in New Issue