widget_utils for notanalog
parent
719c800934
commit
5c649d37a0
|
|
@ -3,3 +3,4 @@
|
||||||
0.03: Battery improvements through sleep (no minute updates) and partial updates of drawing.
|
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.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.
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
"name": "Not Analog",
|
"name": "Not Analog",
|
||||||
"shortName":"Not Analog",
|
"shortName":"Not Analog",
|
||||||
"icon": "notanalog.png",
|
"icon": "notanalog.png",
|
||||||
"version":"0.05",
|
"version":"0.06",
|
||||||
"readme": "README.md",
|
"readme": "README.md",
|
||||||
"supports": ["BANGLEJS2"],
|
"supports": ["BANGLEJS2"],
|
||||||
"description": "An analog watch face for people that can not read analog watch faces.",
|
"description": "An analog watch face for people that can not read analog watch faces.",
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
const TIMER_IDX = "notanalog";
|
const TIMER_IDX = "notanalog";
|
||||||
const locale = require('locale');
|
const locale = require('locale');
|
||||||
const storage = require('Storage')
|
const storage = require('Storage')
|
||||||
|
const widget_utils = require('widget_utils');
|
||||||
const SETTINGS_FILE = "notanalog.setting.json";
|
const SETTINGS_FILE = "notanalog.setting.json";
|
||||||
let settings = {
|
let settings = {
|
||||||
alarm: -1,
|
alarm: -1,
|
||||||
|
|
@ -460,10 +461,8 @@ Bangle.setUI("clock");
|
||||||
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();
|
||||||
|
|
||||||
// Clear the screen once, at startup and draw clock
|
// Clear the screen once, at startup and draw clock
|
||||||
// g.setTheme({bg:"#fff",fg:"#000",dark:false}).clear();
|
// g.setTheme({bg:"#fff",fg:"#000",dark:false}).clear();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue