fix coloring issue from GPS widget

master
Gordon Williams 2020-02-13 10:50:04 +00:00
parent 2b94bdea41
commit c373c3150f
4 changed files with 6 additions and 3 deletions

View File

@ -137,9 +137,10 @@
{ "id": "clck3x2", { "id": "clck3x2",
"name": "3x2 Pixel Clock", "name": "3x2 Pixel Clock",
"icon": "clock3x2.png", "icon": "clock3x2.png",
"version":"0.02", "version":"0.03",
"description": "This is a simple clock using minimalistic 3x2 pixel numerical digits", "description": "This is a simple clock using minimalistic 3x2 pixel numerical digits",
"tags": "clock", "tags": "clock",
"allow_emulator":true,
"storage": [ "storage": [
{"name":"+clck3x2","url":"clock3x2.json"}, {"name":"+clck3x2","url":"clock3x2.json"},
{"name":"-clck3x2","url":"clock3x2.js"}, {"name":"-clck3x2","url":"clock3x2.js"},

View File

@ -1 +1,2 @@
0.02: Modified for use with new bootloader and firmware 0.02: Modified for use with new bootloader and firmware
0.03: Added 'reset' so we don't get the font color from widgets

View File

@ -57,9 +57,9 @@ const pixels = [[[0,0], // digit on/off pixels
let idTimeout = null; let idTimeout = null;
function drawTime() { function drawTime() {
g.clear(); g.clear(1);
Bangle.drawWidgets(); Bangle.drawWidgets();
g.reset();
let d = Date(); let d = Date();
let h = d.getHours(); let h = d.getHours();
let m = d.getMinutes(); let m = d.getMinutes();

View File

@ -32,6 +32,7 @@
} }
} }
g.drawString("GPS",xpos+12,12); g.drawString("GPS",xpos+12,12);
g.setColor(-1); // change color back to be nice to other apps
} }
function onGPS(fix) { function onGPS(fix) {