1
0
Fork 0

Widget size no longer changes, so remove associated code.

master
Pavel Machek 2023-09-02 23:25:54 +02:00
parent bc92e0c8c6
commit 60a99aae53
1 changed files with 0 additions and 5 deletions

View File

@ -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();
});
@ -40,5 +36,4 @@
g.setColor(g.theme.fg).fillPoly(flash);
}
}};
setWidth();
})()