mirror of https://github.com/espruino/BangleApps
widget_utils for limelight
parent
5c649d37a0
commit
6b4b665e1e
|
@ -1,2 +1,4 @@
|
|||
0.01: first release
|
||||
0.02: Tell clock widgets to hide.
|
||||
0.03: Use widget_utils.
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue