We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 79031df + 6c28d76 commit bf53686Copy full SHA for bf53686
apps/widsmartbatt/ChangeLog
@@ -1 +1,2 @@
1
v0.01: New app!
2
+v0.02: Displays warning '!' if battery is 5 percent or less.
apps/widsmartbatt/metadata.json
@@ -3,7 +3,7 @@
3
"name": "Smart Battery Widget",
4
"shortName":"Smart Batt Wid",
5
"icon": "icon.png",
6
- "version":"0.01",
+ "version":"0.02",
7
"type": "widget",
8
"supports": ["BANGLEJS", "BANGLEJS2"],
9
"readme": "README.md",
apps/widsmartbatt/widget.js
@@ -29,6 +29,7 @@
29
: (days >= 1
30
? Math.round(Math.min(days, 99)) + "d"
31
: Math.round(hrsLeft) + "h");
32
+ if(batt<=5&&!showPercent) txt="!";
33
if(Bangle.isCharging()) txt=E.getBattery();
34
let s = 29;
35
let x = this.x, y = this.y;
0 commit comments