Skip to content

Commit 1d5ef00

Browse files
author
thyttan
committed
widminbate: battery level threshold 10%->20%
1 parent 5c1e86e commit 1d5ef00

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

apps/widminbate/ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
colour.
66
0.05: Fix broken fork which removed the `update` function
77
0.06: The widget now shows only when battery level is 10% or lower
8+
0.07: The widget now shows when battery level is 20% or lower

apps/widminbate/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{ "id": "widminbate",
22
"name": "Extra Minimal Battery",
33
"shortName":"ExtraMinBat",
4-
"version":"0.06",
4+
"version":"0.07",
55
"author": "thyttan",
66
"description": "An extra minimal (only use system theme foreground colour) version of the battery widget that only appears if the battery is running low (10% or less)",
77
"icon": "widget.png",

apps/widminbate/widget.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
let getWidth = function() {
3-
return E.getBattery() <= 10 || Bangle.isCharging() ? 40 : 0;
3+
return E.getBattery() <= 20 || Bangle.isCharging() ? 40 : 0;
44
};
55
WIDGETS.minbate={area:"tr",width:getWidth(),draw:function() {
66
if(this.width < 40) return;

0 commit comments

Comments
 (0)