Works - except that date_utils is gone?!

master
deirdreobyrne 2022-08-27 22:25:28 +01:00
parent 58a200b05d
commit b3f40e868d
3 changed files with 10 additions and 5 deletions

View File

@ -3,3 +3,4 @@
0.03: Internationalisation; bug fix - battery icon responds promptly to charging state
0.04: bug fix
0.05: proper fix for the race condition in queueDraw()
0.06: Better battery graphic - now has green, yellow and red sections

View File

@ -29,7 +29,8 @@ function draw() {
const level = E.getBattery();
const width = level + (level/2);
var is12Hour = (require("Storage").readJSON("setting.json", 1) || {})["12hour"];
var dows = require("date_utils").dows(0,1);
// var dows = require("date_utils").dows(0,1);
var dows = ["SU","MO","TU","WE","TH","FR","SA"];
g.reset();
g.clear();
@ -53,12 +54,15 @@ function draw() {
g.fillRect(167,163,170,167);
if (Bangle.isCharging()) {
g.setColor(1,1,0);
} else if (level > 40) {
g.setColor(0,1,0);
g.fillRect(12,162,12+width,168);
} else {
g.setColor(1,0,0);
g.fillRect(12,162,57,168);
g.setColor(1,1,0);
g.fillRect(58,162,72,168);
g.setColor(0,1,0);
g.fillRect(73,162,162,168);
}
g.fillRect(12,162,12+width,168);
if (level < 100) {
g.setColor(g.theme.bg);
g.fillRect(12+width+1,162,162,168);

View File

@ -1,7 +1,7 @@
{ "id": "bigdclock",
"name": "Big digit clock containing just the essentials",
"shortName":"Big digit clk",
"version":"0.05",
"version":"0.06",
"description": "A clock containing just the essentials, made as easy to read as possible for those of us that need glasses. It contains the time, the day-of-week, the day-of-month, and the current battery state-of-charge.",
"icon": "bigdclock.png",
"type": "clock",