Rename 'Wake on BTN1/Touch' to 'Wake on Button/Tap' on Bangle.js 2

pull/3099/head
Gordon Williams 2023-11-16 14:59:32 +00:00
parent 3f0dbc04c7
commit 681bd41945
4 changed files with 33 additions and 14 deletions

View File

@ -75,4 +75,5 @@ of 'Select Clock'
0.65: Prepend 'LCD->Calibration' touch listener and stop event propagation.
0.66: Fix LCD calibration bug where it would come on again after the
calibration was done.
0.67: Rename 'Wake on BTN1/Touch' to 'Wake on Button/Tap' on Bangle.js 2

View File

@ -32,7 +32,7 @@ This is Bangle.js's settings menu
* **Rotation** allows you to rotate (or mirror) what's displayed on the screen, eg. for left-handed wearers (needs 2v16 or 2v15 cutting edge firmware to work reliably)
* **Wake on X** should the given activity wake up the Bangle.js LCD?
* On Bangle.js 2 when locked the touchscreen is turned off to save power. Because of this,
`Wake on Touch` actually uses the accelerometer, and you need to actually tap the display to wake Bangle.js.
`Wake on Touch` actually uses the accelerometer, and you need to actually tap the display to wake Bangle.js (we recently renamed the menu item to `Wake on Tap`).
* **Twist X** these options adjust the sensitivity of `Wake on Twist` to ensure Bangle.js wakes up with just the right amount of wrist movement.
* **Calibrate** on Bangle.js 2, pop up a screen allowing you to calibrate the touchscreen (calibration only works on 2v16 or 2v15 cutting edge builds)

View File

@ -1,7 +1,7 @@
{
"id": "setting",
"name": "Settings",
"version": "0.66",
"version": "0.67",
"description": "A menu for setting up Bangle.js",
"icon": "settings.png",
"tags": "tool,system",

View File

@ -448,17 +448,35 @@ function showLCDMenu() {
g.setRotation(settings.rotate&3,settings.rotate>>2).clear();
Bangle.drawWidgets();
}
},
/*LANG*/'Wake on BTN1': {
}
});
if (BANGLEJS2)
Object.assign(lcdMenu, {
/*LANG*/'Wake on Button': {
value: settings.options.wakeOnBTN1,
onchange: () => {
settings.options.wakeOnBTN1 = !settings.options.wakeOnBTN1;
updateOptions();
}
}
},
/*LANG*/'Wake on Tap': {
value: settings.options.wakeOnTouch,
onchange: () => {
settings.options.wakeOnTouch = !settings.options.wakeOnTouch;
updateOptions();
}
});
if (!BANGLEJS2)
else
Object.assign(lcdMenu, {
/*LANG*/'Wake on BTN1': {
value: settings.options.wakeOnBTN1,
onchange: () => {
settings.options.wakeOnBTN1 = !settings.options.wakeOnBTN1;
updateOptions();
}
},
/*LANG*/'Wake on BTN2': {
value: settings.options.wakeOnBTN2,
onchange: () => {
@ -472,6 +490,13 @@ function showLCDMenu() {
settings.options.wakeOnBTN3 = !settings.options.wakeOnBTN3;
updateOptions();
}
},
/*LANG*/'Wake on Touch': {
value: settings.options.wakeOnTouch,
onchange: () => {
settings.options.wakeOnTouch = !settings.options.wakeOnTouch;
updateOptions();
}
}});
Object.assign(lcdMenu, {
/*LANG*/'Wake on FaceUp': {
@ -481,13 +506,6 @@ function showLCDMenu() {
updateOptions();
}
},
/*LANG*/'Wake on Touch': {
value: settings.options.wakeOnTouch,
onchange: () => {
settings.options.wakeOnTouch = !settings.options.wakeOnTouch;
updateOptions();
}
},
/*LANG*/'Wake on Twist': {
value: settings.options.wakeOnTwist,
onchange: () => {