diff --git a/apps/limelight/ChangeLog b/apps/limelight/ChangeLog index 8fe3a0b2c..de8caf9c4 100644 --- a/apps/limelight/ChangeLog +++ b/apps/limelight/ChangeLog @@ -1,2 +1,4 @@ 0.01: first release 0.02: Tell clock widgets to hide. +0.03: Use widget_utils. + diff --git a/apps/limelight/limelight.app.js b/apps/limelight/limelight.app.js index 84ded1039..dbc784e23 100644 --- a/apps/limelight/limelight.app.js +++ b/apps/limelight/limelight.app.js @@ -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) { diff --git a/apps/limelight/metadata.json b/apps/limelight/metadata.json index e484a2825..0e5dfd565 100644 --- a/apps/limelight/metadata.json +++ b/apps/limelight/metadata.json @@ -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",