qcenter: Grammar fixes & Final touches

master
Kedlub 2022-11-25 14:42:10 +01:00
parent 8cf2f9957a
commit bc052c3ace
5 changed files with 53 additions and 29 deletions

View File

@ -1,20 +1,20 @@
# Quick Center
App with status bar showing various info, and up to six shortcuts for your favorite apps!
Meant to be used with any kind of quick launcher, such as Quick Launch or Pattern Launcher
An app with a status bar showing various information and up to six shortcuts for your favorite apps!
Designed for use with any kind of quick launcher, such as Quick Launch or Pattern Launcher.
Add screen shots (if possible) to the app folder and link then into this file with ![](<name>.png)
![](screenshot.png)
## Usage
Pin apps using settings, and then run this using your favorite quick launcher to access them quickly
If you don't have any pinned apps, it shows setting and about app as an example
Pin your apps with settings, then launch them with your favorite quick launcher to access them quickly.
If you don't have any apps pinned, the settings and about apps will be shown as an example.
## Features
Showing battery and temperature (for now)
Battery and GPS status display (for now)
Up to six shortcuts to your favorite apps
## Upcoming features
- Quick toggles for toggleable functions, such as Bluetooth, or it's HID mode
- Customizable status info
- Quick switches for toggleable features such as Bluetooth or HID mode
- Customizable status information

View File

@ -76,14 +76,14 @@ var appButtons = groupBy3(pinnedApps).map((appGroup, i) => {
});
});
// create basic layout content with status info on top
// create basic layout content with status info and sensor status on top
var layoutContent = [
{
type: "h",
pad: 5,
c: [
{ type: "txt", font: "8x12", scale: 2, label: E.getBattery() + "%" },
{ type: "txt", font: "8x12", scale: 2, label: " " + E.getTemperature() + "°C" },
{ type: "txt", font: "8x12", scale: 2, label: "GPS: " + (Bangle.isGPSOn() ? "ON" : "OFF") },
],
},
];

View File

@ -1,12 +1,14 @@
{ "id": "qcenter",
{
"id": "qcenter",
"name": "Quick Center",
"shortName": "QCenter",
"version": "0.01",
"description": "Shortcut for running your favorite apps & more",
"description": "Shortcut app for quickly running your favorite apps",
"icon": "app.png",
"tags": "",
"supports": ["BANGLEJS2"],
"readme": "README.md",
"screenshots": [{ "url": "screenshot.png" }],
"storage": [
{ "name": "qcenter.app.js", "url": "app.js" },
{ "name": "qcenter.settings.js", "url": "settings.js" },

BIN
apps/qcenter/screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@ -52,12 +52,34 @@
E.showMenu(exitGestureMenu);
};
//List all pinned apps
//List all pinned apps, redirecting to menu with options to unpin and reorder
pinnedApps.forEach((app, i) => {
mainmenu["Remove " + app.name] = function () {
mainmenu[app.name] = function () {
E.showMenu({
"": { title: app.name },
"< Back": () => {
showMainMenu();
},
"Unpin": () => {
pinnedApps.splice(i, 1);
save("pinnedApps", pinnedApps);
showMainMenu();
},
"Move Up": () => {
if (i > 0) {
pinnedApps.splice(i - 1, 0, pinnedApps.splice(i, 1)[0]);
save("pinnedApps", pinnedApps);
showMainMenu();
}
},
"Move Down": () => {
if (i < pinnedApps.length - 1) {
pinnedApps.splice(i + 1, 0, pinnedApps.splice(i, 1)[0]);
save("pinnedApps", pinnedApps);
showMainMenu();
}
},
});
};
});