mirror of https://github.com/espruino/BangleApps
widget_utils for daisy
parent
6b4b665e1e
commit
d0bd009178
|
@ -7,3 +7,4 @@
|
|||
0.07: Use default Bangle formatter for booleans
|
||||
0.08: fix idle timer always getting set to true
|
||||
0.09: Use 'modules/suncalc.js' to avoid it being copied 8 times for different apps
|
||||
0.10: Use widget_utils.
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
var SunCalc = require("suncalc"); // from modules folder
|
||||
const storage = require('Storage');
|
||||
const locale = require("locale");
|
||||
const widget_utils = require('widget_utils');
|
||||
const SETTINGS_FILE = "daisy.json";
|
||||
const LOCATION_FILE = "mylocation.json";
|
||||
const h = g.getHeight();
|
||||
|
@ -547,8 +548,6 @@ g.clear();
|
|||
Bangle.loadWidgets();
|
||||
/*
|
||||
* we are not drawing the widgets as we are taking over the whole screen
|
||||
* so we will blank out the draw() functions of each widget and change the
|
||||
* area to the top bar doesn't get cleared.
|
||||
*/
|
||||
for (let wd of WIDGETS) {wd.draw=()=>{};wd.area="";}
|
||||
widget_utils.hide();
|
||||
draw();
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ "id": "daisy",
|
||||
"name": "Daisy",
|
||||
"version":"0.09",
|
||||
"version":"0.10",
|
||||
"dependencies": {"mylocation":"app"},
|
||||
"description": "A beautiful digital clock with large ring guage, idle timer and a cyclic information line that includes, day, date, steps, battery, sunrise and sunset times",
|
||||
"icon": "app.png",
|
||||
|
|
Loading…
Reference in New Issue