Merge pull request #632 from OmegaVoid/release/dane/0.16

 Release DANE 0.16
pull/672/head
Gordon Williams 2021-02-17 13:04:27 +00:00 committed by GitHub
commit 186f6c6180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 11 deletions

View File

@ -1492,7 +1492,7 @@
"name": "Digital Assistant, not EDITH",
"shortName": "DANE",
"icon": "app.png",
"version": "0.15",
"version": "0.16",
"description": "A Watchface inspired by Tony Stark's EDITH and based on https://arwes.dev/",
"tags": "clock",
"type": "clock",

View File

@ -11,3 +11,4 @@
0.13: Improve icon
0.14: Switch Icon back to 8bit web palette to fix it
0.15: Hotfix: Remove var declaration from app image
0.16: Revert: Change Counter back to button control

View File

@ -67,7 +67,7 @@ function levelColor(l) {
function drawBattery() {
const l = E.getBattery(), c = levelColor(l);
count = l;
// count = l;
const xl = 45 + l * (194 - 46) / 100;
g.clearRect(46, 58 + 80 + yOffset + 37, 193, height - 5);
g.setColor(c).fillRect(46, 58 + 80 + yOffset + 37, xl, height - 5);
@ -124,14 +124,14 @@ drawClock();
setWatch(Bangle.showLauncher, BTN2, {repeat: false, edge: "falling"});
// setWatch(function () {
// count++;
// drawCounterText();
// }, BTN1, {repeat: true, edge: "falling"});
// setWatch(function () {
// count--;
// drawCounterText();
// }, BTN3, {repeat: true, edge: "falling"});
setWatch(function () {
count++;
drawCounterText();
}, BTN1, {repeat: true, edge: "falling"});
setWatch(function () {
count--;
drawCounterText();
}, BTN3, {repeat: true, edge: "falling"});
// refesh every 100 milliseconds
setInterval(updateClock, 500);