diff --git a/apps/qcenter/app.js b/apps/qcenter/app.js index 0493805ac..a6499f508 100644 --- a/apps/qcenter/app.js +++ b/apps/qcenter/app.js @@ -82,8 +82,8 @@ var layoutContent = [ type: "h", pad: 5, c: [ - { type: "txt", font: "8x12", label: E.getBattery() + "%" }, - { type: "txt", font: "8x12", label: " " + E.getTemperature() + "°C" }, + { type: "txt", font: "8x12", scale: 2, label: E.getBattery() + "%" }, + { type: "txt", font: "8x12", scale: 2, label: " " + E.getTemperature() + "°C" }, ], }, ]; @@ -97,6 +97,10 @@ appButtons.forEach((appGroup) => { }); }); +// create layout with content + +Bangle.loadWidgets(); + var Layout = require("Layout"); var layout = new Layout({ type: "v", @@ -104,8 +108,9 @@ var layout = new Layout({ }); g.clear(); layout.render(); +Bangle.drawWidgets(); -// add swipe event listener for exit gesture +// swipe event listener for exit gesture Bangle.on("swipe", function (lr, ud) { if(exitGesture == "swipeup" && ud == -1) Bangle.showClock(); if(exitGesture == "swipedown" && ud == 1) Bangle.showClock(); diff --git a/apps/qcenter/settings.js b/apps/qcenter/settings.js index 5550fd149..10484bc8f 100644 --- a/apps/qcenter/settings.js +++ b/apps/qcenter/settings.js @@ -53,19 +53,13 @@ }; //List all pinned apps - for (let i = 0; i < pinnedApps.length; i++) { - mainmenu[pinnedApps[i].name] = function () { - E.showMenu({ - "": { title: pinnedApps[i].name }, - "< Back": showMainMenu, - Unpin: function () { - pinnedApps.splice(i, 1); - save("pinnedApps", pinnedApps); - showMainMenu(); - }, - }); + pinnedApps.forEach((app, i) => { + mainmenu["Remove " + app.name] = function () { + pinnedApps.splice(i, 1); + save("pinnedApps", pinnedApps); + showMainMenu(); }; - } + }); // Show pin app menu, or show alert if max amount of apps are pinned mainmenu["Pin App"] = function () {