Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/widminbate/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
colour.
0.05: Fix broken fork which removed the `update` function
0.06: The widget now shows only when battery level is 10% or lower
0.07: The widget now shows when battery level is 20% or lower
2 changes: 1 addition & 1 deletion apps/widminbate/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ "id": "widminbate",
"name": "Extra Minimal Battery",
"shortName":"ExtraMinBat",
"version":"0.06",
"version":"0.07",
"author": "thyttan",
"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)",
"icon": "widget.png",
Expand Down
2 changes: 1 addition & 1 deletion apps/widminbate/widget.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
let getWidth = function() {
return E.getBattery() <= 10 || Bangle.isCharging() ? 40 : 0;
return E.getBattery() <= 20 || Bangle.isCharging() ? 40 : 0;
};
WIDGETS.minbate={area:"tr",width:getWidth(),draw:function() {
if(this.width < 40) return;
Expand Down