Default option fixes
parent
0b8fa574d2
commit
9f52fe4a91
|
|
@ -11,8 +11,8 @@ const proportion = 0.3; // relative size of hour hand
|
||||||
const thickness = 4; // thickness of decorative lines
|
const thickness = 4; // thickness of decorative lines
|
||||||
// retrieve settings from menu
|
// retrieve settings from menu
|
||||||
let settings = require('Storage').readJSON('app.json',1)||{};
|
let settings = require('Storage').readJSON('app.json',1)||{};
|
||||||
const decoration = settings.decoration;
|
const decoration = !settings.decoration;
|
||||||
const widgets = settings.widgets;
|
const widgets = !settings.widgets;
|
||||||
if (widgets) {
|
if (widgets) {
|
||||||
widgetHeight = 24;}
|
widgetHeight = 24;}
|
||||||
else {
|
else {
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
onchange: m => {save('widgets', m)}
|
onchange: m => {save('widgets', m)}
|
||||||
},
|
},
|
||||||
'Decoration': {
|
'Decoration': {
|
||||||
value: 1|settings['decoration'],
|
value: 0|settings['decoration'],
|
||||||
min:0,max:1,
|
min:0,max:1,
|
||||||
format: m => onoff[m],
|
format: m => onoff[m],
|
||||||
onchange: m => {save('decoration', m)}
|
onchange: m => {save('decoration', m)}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue