Merge pull request #3934 from RKBoss6/settingsUpdate

[Settings] Add 0 level brightness setting for LCD settings
master
Gordon Williams 2025-07-21 17:49:50 +02:00 committed by GitHub
commit a7da1bc1dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 4 deletions

View File

@ -88,3 +88,4 @@ of 'Select Clock'
0.77: Save altitude calibration when user exits via reset
0.78: Fix menu scroll restore on BangleJS1
0.79: Ensure that tapping on pressure/altitude doesn't cause a menu to display temporarily
0.80: Add option to set LCD brightness to 0, default brightness is now 0 as well.

View File

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

View File

@ -1,3 +1,4 @@
Bangle.loadWidgets();
Bangle.drawWidgets();
@ -474,11 +475,11 @@ function LCDMenu() {
Object.assign(lcdMenu, {
/*LANG*/'LCD Brightness': {
value: settings.brightness,
min: 0.1,
min : BANGLEJS2 ? 0 : 0.1,
max: 1,
step: 0.1,
onchange: v => {
settings.brightness = v || 1;
settings.brightness = v ?? 1;
updateSettings();
Bangle.setLCDBrightness(settings.brightness);
}
@ -1077,4 +1078,4 @@ function showAltitude() {
}
// Show the main menu
pushMenu(mainMenu());
pushMenu(mainMenu());