qcenter: Grammar fixes & Final touches
parent
8cf2f9957a
commit
bc052c3ace
|
|
@ -1,20 +1,20 @@
|
||||||
# Quick Center
|
# Quick Center
|
||||||
|
|
||||||
App with status bar showing various info, and up to six shortcuts for your favorite apps!
|
An app with a status bar showing various information 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
|
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 
|

|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Pin apps using settings, and then run this using your favorite quick launcher to access them quickly
|
Pin your apps with settings, then launch them with 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
|
If you don't have any apps pinned, the settings and about apps will be shown as an example.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
Showing battery and temperature (for now)
|
Battery and GPS status display (for now)
|
||||||
Up to six shortcuts to your favorite apps
|
Up to six shortcuts to your favorite apps
|
||||||
|
|
||||||
## Upcoming features
|
## Upcoming features
|
||||||
- Quick toggles for toggleable functions, such as Bluetooth, or it's HID mode
|
- Quick switches for toggleable features such as Bluetooth or HID mode
|
||||||
- Customizable status info
|
- Customizable status information
|
||||||
|
|
@ -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 = [
|
var layoutContent = [
|
||||||
{
|
{
|
||||||
type: "h",
|
type: "h",
|
||||||
pad: 5,
|
pad: 5,
|
||||||
c: [
|
c: [
|
||||||
{ type: "txt", font: "8x12", scale: 2, label: E.getBattery() + "%" },
|
{ 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") },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,14 @@
|
||||||
{ "id": "qcenter",
|
{
|
||||||
|
"id": "qcenter",
|
||||||
"name": "Quick Center",
|
"name": "Quick Center",
|
||||||
"shortName": "QCenter",
|
"shortName": "QCenter",
|
||||||
"version": "0.01",
|
"version": "0.01",
|
||||||
"description": "Shortcut for running your favorite apps & more",
|
"description": "Shortcut app for quickly running your favorite apps",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"tags": "",
|
"tags": "",
|
||||||
"supports": ["BANGLEJS2"],
|
"supports": ["BANGLEJS2"],
|
||||||
"readme": "README.md",
|
"readme": "README.md",
|
||||||
|
"screenshots": [{ "url": "screenshot.png" }],
|
||||||
"storage": [
|
"storage": [
|
||||||
{ "name": "qcenter.app.js", "url": "app.js" },
|
{ "name": "qcenter.app.js", "url": "app.js" },
|
||||||
{ "name": "qcenter.settings.js", "url": "settings.js" },
|
{ "name": "qcenter.settings.js", "url": "settings.js" },
|
||||||
|
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 3.6 KiB |
|
|
@ -52,12 +52,34 @@
|
||||||
E.showMenu(exitGestureMenu);
|
E.showMenu(exitGestureMenu);
|
||||||
};
|
};
|
||||||
|
|
||||||
//List all pinned apps
|
//List all pinned apps, redirecting to menu with options to unpin and reorder
|
||||||
pinnedApps.forEach((app, i) => {
|
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);
|
pinnedApps.splice(i, 1);
|
||||||
save("pinnedApps", pinnedApps);
|
save("pinnedApps", pinnedApps);
|
||||||
showMainMenu();
|
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();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
});
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue