mirror of https://github.com/espruino/BangleApps
Pastel: make new boolean setting work
parent
b7e7e7819c
commit
9dd3e9b069
|
@ -16,3 +16,4 @@
|
||||||
0.14: incorporated lazybones idle timer, configuration settings to come
|
0.14: incorporated lazybones idle timer, configuration settings to come
|
||||||
0.15: fixed tendancy for mylocation to default to London
|
0.15: fixed tendancy for mylocation to default to London
|
||||||
added setting to enable/disable idle timer warning
|
added setting to enable/disable idle timer warning
|
||||||
|
0.16: make check_idle boolean setting work properly with new B2 menu
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"id": "pastel",
|
"id": "pastel",
|
||||||
"name": "Pastel Clock",
|
"name": "Pastel Clock",
|
||||||
"shortName": "Pastel",
|
"shortName": "Pastel",
|
||||||
"version": "0.15",
|
"version": "0.16",
|
||||||
"description": "A Configurable clock with custom fonts, background and weather display. Has a cyclic information line that includes, day, date, battery, sunrise and sunset times",
|
"description": "A Configurable clock with custom fonts, background and weather display. Has a cyclic information line that includes, day, date, battery, sunrise and sunset times",
|
||||||
"icon": "pastel.png",
|
"icon": "pastel.png",
|
||||||
"dependencies": {"mylocation":"app","weather":"app"},
|
"dependencies": {"mylocation":"app","weather":"app"},
|
||||||
|
|
|
@ -38,38 +38,28 @@
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'Show Grid': {
|
'Show Grid': {
|
||||||
value: s.grid,
|
value: !!s.grid,
|
||||||
format: () => (s.grid ? 'Yes' : 'No'),
|
format: v => v ? /*LANG*/"Yes":/*LANG*/"No",
|
||||||
onchange: () => {
|
onchange: v => {
|
||||||
s.grid = !s.grid;
|
s.grid = v;
|
||||||
save();
|
save();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'Show Weather': {
|
'Show Weather': {
|
||||||
value: s.weather,
|
value: !!s.weather,
|
||||||
format: () => (s.weather ? 'Yes' : 'No'),
|
format: v => v ? /*LANG*/"Yes":/*LANG*/"No",
|
||||||
onchange: () => {
|
onchange: v => {
|
||||||
s.weather = !s.weather;
|
s.weather = v;
|
||||||
save();
|
save();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// for use when the new menu system goes live
|
|
||||||
/*
|
|
||||||
'Idle Warning': {
|
'Idle Warning': {
|
||||||
value: s.idle_check,
|
value: !!s.idle_check,
|
||||||
onchange : v => {
|
format: v => v ? /*LANG*/"Yes":/*LANG*/"No",
|
||||||
|
onchange: v => {
|
||||||
s.idle_check = v;
|
s.idle_check = v;
|
||||||
save();
|
save();
|
||||||
},
|
},
|
||||||
},
|
|
||||||
*/
|
|
||||||
'Idle Warning': {
|
|
||||||
value: s.idle_check,
|
|
||||||
format: () => (s.idle_check ? 'Yes' : 'No'),
|
|
||||||
onchange: () => {
|
|
||||||
s.idle_check = !s.idle_check;
|
|
||||||
save();
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue