widget_utils for limelight

pull/2492/head
thyttan 2023-01-11 20:09:40 +01:00
parent 5c649d37a0
commit 6b4b665e1e
3 changed files with 5 additions and 4 deletions

View File

@ -1,2 +1,4 @@
0.01: first release
0.02: Tell clock widgets to hide.
0.03: Use widget_utils.

View File

@ -14,6 +14,7 @@ Bangle.setUI('clock');
g.clear();
const widget_utils = require('widget_utils');
const SETTINGS_FILE = "limelight.json";
var UPDATE_PERIOD;
var drawTimeout;
@ -84,10 +85,8 @@ if (settings.fullscreen) {
/*
* We load the widgets as some like widpedom accumualte the step count.
* 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
* widgets area to the top bar doesn't get cleared.
*/
for (let wd of WIDGETS) {wd.draw=()=>{};wd.area="";}
widget_utils.hide();
}
function debug(o) {

View File

@ -1,7 +1,7 @@
{
"id": "limelight",
"name": "Limelight",
"version": "0.02",
"version": "0.03",
"description": "Simple analogue clock (with configurable fonts) based on the work of @Andreas_Rozek (Simple_Clock)",
"icon": "limelight.png",
"readme":"README.md",