Skip to content

Commit

Permalink
Widget size no longer changes, so remove associated code.
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelmachek committed Sep 2, 2023
1 parent bc92e0c commit 60a99aa
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions apps/widbat/widget.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
(function(){
function setWidth() {
WIDGETS["bat"].width = 40 + (Bangle.isCharging()?16:0);
}
Bangle.on('charging',function(charging) {
if(charging) Bangle.buzz();
setWidth();
Bangle.drawWidgets(); // re-layout widgets
g.flip();
});
Expand Down Expand Up @@ -40,5 +36,4 @@
g.setColor(g.theme.fg).fillPoly(flash);
}
}};
setWidth();
})()

0 comments on commit 60a99aa

Please sign in to comment.