widget_utils for daisy

pull/2492/head
thyttan 2023-01-11 20:12:07 +01:00
parent 6b4b665e1e
commit d0bd009178
3 changed files with 4 additions and 4 deletions

View File

@ -7,3 +7,4 @@
0.07: Use default Bangle formatter for booleans 0.07: Use default Bangle formatter for booleans
0.08: fix idle timer always getting set to true 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.09: Use 'modules/suncalc.js' to avoid it being copied 8 times for different apps
0.10: Use widget_utils.

View File

@ -1,6 +1,7 @@
var SunCalc = require("suncalc"); // from modules folder var SunCalc = require("suncalc"); // from modules folder
const storage = require('Storage'); const storage = require('Storage');
const locale = require("locale"); const locale = require("locale");
const widget_utils = require('widget_utils');
const SETTINGS_FILE = "daisy.json"; const SETTINGS_FILE = "daisy.json";
const LOCATION_FILE = "mylocation.json"; const LOCATION_FILE = "mylocation.json";
const h = g.getHeight(); const h = g.getHeight();
@ -547,8 +548,6 @@ g.clear();
Bangle.loadWidgets(); Bangle.loadWidgets();
/* /*
* we are not drawing the widgets as we are taking over the whole screen * 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(); draw();

View File

@ -1,6 +1,6 @@
{ "id": "daisy", { "id": "daisy",
"name": "Daisy", "name": "Daisy",
"version":"0.09", "version":"0.10",
"dependencies": {"mylocation":"app"}, "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", "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", "icon": "app.png",