widget_utils for notanalog

master
thyttan 2023-01-11 20:01:56 +01:00
parent 719c800934
commit 5c649d37a0
3 changed files with 5 additions and 5 deletions

View File

@ -2,4 +2,5 @@
0.02: 12k steps are 360 degrees - improves readability of steps.
0.03: Battery improvements through sleep (no minute updates) and partial updates of drawing.
0.04: Use alarm for timer instead of own alarm implementation.
0.05: Use internal step counter if no widget is available.
0.05: Use internal step counter if no widget is available.
0.06: Use widget_utils.

View File

@ -3,7 +3,7 @@
"name": "Not Analog",
"shortName":"Not Analog",
"icon": "notanalog.png",
"version":"0.05",
"version":"0.06",
"readme": "README.md",
"supports": ["BANGLEJS2"],
"description": "An analog watch face for people that can not read analog watch faces.",

View File

@ -4,6 +4,7 @@
const TIMER_IDX = "notanalog";
const locale = require('locale');
const storage = require('Storage')
const widget_utils = require('widget_utils');
const SETTINGS_FILE = "notanalog.setting.json";
let settings = {
alarm: -1,
@ -460,10 +461,8 @@ Bangle.setUI("clock");
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();
// Clear the screen once, at startup and draw clock
// g.setTheme({bg:"#fff",fg:"#000",dark:false}).clear();