Merge pull request #1535 from Ronin0000/master

Fix Battery Level Displaying
master
Gordon Williams 2022-03-03 09:00:31 +00:00 committed by GitHub
commit b2476794b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -1,2 +1,3 @@
0.01: Initial version
0.02: Add battery level
0.03: fix battery level displaying

View File

@ -51,7 +51,7 @@ function draw() {
g.drawImage(background);
const color = getBatteryColor();
const bat = d02(E.getBattery()) + "%";
const bat = E.getBattery() + "%";
const d = new Date();
const day = d.getDate();
const month = (d.getMonth() + 1);
@ -78,7 +78,7 @@ function draw() {
g.setFont("Vector", 16);
g.drawString("Bat:", 12, 22, false);
g.setColor(color[0], color[1], color[2]);
g.drawString(bat, 52, 22, false);
g.drawString(bat, 46, 22, false);
}
g.clear();

View File

@ -3,7 +3,7 @@
"name":"Monogram Watch Face",
"shortName":"MonoClock",
"icon":"app.png",
"version":"0.02",
"version":"0.03",
"description": "A simple watchface based on my stylised monogram.",
"tags":"clock",
"readme":"README.md",