File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -88,3 +88,4 @@ of 'Select Clock'
88880.77: Save altitude calibration when user exits via reset
89890.78: Fix menu scroll restore on BangleJS1
90900.79: Ensure that tapping on pressure/altitude doesn't cause a menu to display temporarily
91+ 0.80: Add option to set LCD brightness to 0, default brightness is now 0 as well.
Original file line number Diff line number Diff line change 11{
22 "id" : " setting" ,
33 "name" : " Settings" ,
4- "version" : " 0.79 " ,
4+ "version" : " 0.80 " ,
55 "description" : " A menu for setting up Bangle.js" ,
66 "icon" : " settings.png" ,
77 "tags" : " tool,system" ,
Original file line number Diff line number Diff line change 1+
12Bangle . loadWidgets ( ) ;
23Bangle . drawWidgets ( ) ;
34
@@ -474,11 +475,11 @@ function LCDMenu() {
474475 Object . assign ( lcdMenu , {
475476 /*LANG*/ 'LCD Brightness' : {
476477 value : settings . brightness ,
477- min : 0.1 ,
478+ min : BANGLEJS2 ? 0 : 0.1 ,
478479 max : 1 ,
479480 step : 0.1 ,
480481 onchange : v => {
481- settings . brightness = v || 1 ;
482+ settings . brightness = v ?? 1 ;
482483 updateSettings ( ) ;
483484 Bangle . setLCDBrightness ( settings . brightness ) ;
484485 }
@@ -1077,4 +1078,4 @@ function showAltitude() {
10771078}
10781079
10791080// Show the main menu
1080- pushMenu ( mainMenu ( ) ) ;
1081+ pushMenu ( mainMenu ( ) ) ;
You can’t perform that action at this time.
0 commit comments