diff --git a/apps/lift/ChangeLog b/apps/lift/ChangeLog new file mode 100644 index 000000000..5453557bc --- /dev/null +++ b/apps/lift/ChangeLog @@ -0,0 +1 @@ +0.01: First Release diff --git a/apps/lift/README.md b/apps/lift/README.md new file mode 100644 index 000000000..12af8a9f4 --- /dev/null +++ b/apps/lift/README.md @@ -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 diff --git a/apps/lift/app-icon.js b/apps/lift/app-icon.js new file mode 100644 index 000000000..554372bb0 --- /dev/null +++ b/apps/lift/app-icon.js @@ -0,0 +1 @@ +require("heatshrink").decompress(atob("mEwwg967oABCaHQAYUNDCISBC4wfDC5gQCC4YYPC5BJOC65MFJCQXIGCIXGGAY0MC5K2EC54TCMhoWGC5YHEC5RBIIxREKC4gWHC5QLDFwXu9oXSCAXuDAoXILIYDD7wYBeJhxHC4QwEC6QwEaB4WCGAgXYDIxGKVQwXJLAQXESJYXGCYPjmYXPFYPtFwQXTAAczmc+C6fj+YXNa4QXEn//C43QC5kz/4XBMAPtVIQXM8YWBC4bBDC4xgCC4RFBC5AWGC4guDC55IBC4IuDC4xGHC5peJPAfdCQIAEVAdACglEABVDDAM97vUqgGBkUAggXLGAQXBotUCwM0oAWLC4cz6tUokyGANCIxwABooGBmkzmQuMoQXDDwQXBmgXMI4gGCmRFBoR3PFIYECVYJgOAwtEbQ4AoA")) diff --git a/apps/lift/app.js b/apps/lift/app.js new file mode 100644 index 000000000..930e75d3c --- /dev/null +++ b/apps/lift/app.js @@ -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