Fixed for @gfwilliams' reviewed changes

master
RKBoss6 2025-07-21 11:23:26 -04:00 committed by GitHub
parent 7c5976b0ee
commit 4595680e81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -1,3 +1,4 @@
Bangle.loadWidgets();
Bangle.drawWidgets();
@ -72,7 +73,7 @@ function resetSettings() {
// clockHasWidgets: false, // Does the clock in 'clock' contain the string 'Bangle.loadWidgets'
"12hour" : false, // 12 or 24 hour clock?
firstDayOfWeek: 0, // 0 -> Sunday (default), 1 -> Monday
brightness: 0, // LCD brightness from 0 to 1
brightness: 1, // LCD brightness from 0 to 1
// welcomed : undefined/true (whether welcome app should show)
options: {
wakeOnBTN1: true,
@ -474,12 +475,11 @@ function LCDMenu() {
Object.assign(lcdMenu, {
/*LANG*/'LCD Brightness': {
value: settings.brightness,
min: 0,
min : BANGLEJS2 ? 0 : 0.1,
max: 1,
step: 0.1,
onchange: v => {
settings.brightness = v || 0;
print(settings.brightness);
settings.brightness = v ?? 1;
updateSettings();
Bangle.setLCDBrightness(settings.brightness);
}