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