fastload - Add fastload app

pull/2320/head
Martin Boonk 2022-10-29 14:17:40 +02:00
parent e8163a6f14
commit 13bbf669b4
5 changed files with 38 additions and 0 deletions

1
apps/fastload/ChangeLog Normal file
View File

@ -0,0 +1 @@
0.01: New App!

1
apps/fastload/README.md Normal file
View File

@ -0,0 +1 @@
# Fastload

22
apps/fastload/boot.js Normal file
View File

@ -0,0 +1,22 @@
{
let loadingScreen = function(){
g.reset();
let x = g.getWidth()/2;
let y = g.getHeight()/2;
g.setColor(g.theme.bg);
g.fillRect(x-49, y-19, x+49, y+19);
g.setColor(g.theme.fg);
g.drawRect(x-50, y-20, x+50, y+20);
g.setFont("6x8");
g.setFontAlign(0,0);
g.drawString("Fastloading...", x, y);
g.flip(true);
};
// only needed to show "Fastloading..." on starting the launcher
Bangle.load = (o => (name) => {
if (Bangle.uiRemove) loadingScreen();
setTimeout(o,0,name);
})(Bangle.load);
}

BIN
apps/fastload/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -0,0 +1,14 @@
{ "id": "fastload",
"name": "Fastload Utils",
"shortName" : "Fastload Utils",
"version": "0.01",
"icon": "icon.png",
"description": "Utilities for fastloading and switching between apps",
"type":"bootloader",
"tags": "system",
"supports": ["BANGLEJS2"],
"readme": "README.md",
"storage": [
{"name":"fastload.5.boot.js","url":"boot.js"}
]
}