1
0
Fork 0
master
Tom Wallroth 2024-04-08 08:36:00 +02:00
parent d91273bcdd
commit 790d2a5ac0
7 changed files with 85 additions and 0 deletions

1
apps/lift/ChangeLog Normal file
View File

@ -0,0 +1 @@
0.01: First Release

22
apps/lift/README.md Normal file
View File

@ -0,0 +1,22 @@
# Guitar Songs
Upload lyrics and chords to your BangleJS2. Play songs at the camp fire.
![screenshot](screenshot.png)
## Usage
Install the app. Use the App Loader to add songs to the watch.
You can scroll through the chords by dragging your finger left and right.
You can scroll the lyrics by dragging it up and down.
## Attribution
[Fire icon created by Freepik - Flaticon](https://www.flaticon.com/free-icons/fire)
## Credits
Created by: devsnd
Inspired by: NovaDawn999

1
apps/lift/app-icon.js Normal file
View File

@ -0,0 +1 @@
require("heatshrink").decompress(atob("mEwwg967oABCaHQAYUNDCISBC4wfDC5gQCC4YYPC5BJOC65MFJCQXIGCIXGGAY0MC5K2EC54TCMhoWGC5YHEC5RBIIxREKC4gWHC5QLDFwXu9oXSCAXuDAoXILIYDD7wYBeJhxHC4QwEC6QwEaB4WCGAgXYDIxGKVQwXJLAQXESJYXGCYPjmYXPFYPtFwQXTAAczmc+C6fj+YXNa4QXEn//C43QC5kz/4XBMAPtVIQXM8YWBC4bBDC4xgCC4RFBC5AWGC4guDC55IBC4IuDC4xGHC5peJPAfdCQIAEVAdACglEABVDDAM97vUqgGBkUAggXLGAQXBotUCwM0oAWLC4cz6tUokyGANCIxwABooGBmkzmQuMoQXDDwQXBmgXMI4gGCmRFBoR3PFIYECVYJgOAwtEbQ4AoA"))

45
apps/lift/app.js Normal file
View File

@ -0,0 +1,45 @@
function roundRect (x1, y1, x2, y2, halfrad) {
const bgColor = g.getBgColor();
const fgColor = g.getColor();
g.fillRect(x1, y1, x2, y2);
g.setColor(bgColor);
g.fillRect(x1, y1, x1 + halfrad, y2 + halfrad);
g.setColor(fgColor);
g.fillEllipse(x1, y1, x1 + halfrad, y2 + halfrad);
}
function drawApp() {
const R = Bangle.appRect;
g.setFont('6x8').setColor(0x1).setFontAlign(-1, -1).drawString('lol', 1, 2);
g.drawLine(R.x, R.y2 / 2, R.x2, R.y2 / 2);
roundRect(R.x, R.y, R.x2/2, R.y2 / 2);
}
function main() {
const R = Bangle.appRect;
g.clear();
Bangle.on('drag', (event) => {
g.clear();
drawApp();
})
}
// function mainMenu () {
// const songs = (
// require("Storage").readJSON("guitar_songs.json", true) ||
// [{'name': 'No songs', 'lyrics': 'Em\nPlease upload a song\nAm A7\nusing the Bangle App Loader', 'chords': ['Am', 'Em', 'A7']}]
// );
// const menu = {
// "": {"title": "Guitar Songs"},
// };
// for (let i=0; i<songs.length; i++) {
// const song = songs[i];
// menu[song.name] = function() { main(song) };
// }
// E.showMenu(menu);
// }
main();

BIN
apps/lift/app.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

16
apps/lift/metadata.json Normal file
View File

@ -0,0 +1,16 @@
{ "id": "guitarsongs",
"name": "Guitar Songs",
"shortName":"Guitar Songs",
"version": "0.04",
"description": "Songs lyrics and guitar chords",
"icon": "app.png",
"screenshots": [{"url": "screenshot.png"}],
"tags": "guitar, song, lyrics, chords",
"supports" : ["BANGLEJS2"],
"readme": "README.md",
"storage": [
{"name":"guitarsongs.app.js","url":"app.js"},
{"name":"guitarsongs.img","url":"app-icon.js","evaluate":true}
],
"data": [{"name": "guitar_songs.json"}]
}

BIN
apps/lift/screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB