Change charging icon

pull/2007/head
David Peer 2022-06-29 19:35:45 +02:00
parent 7759297538
commit a840b1a14a
1 changed files with 9 additions and 1 deletions

View File

@ -99,6 +99,14 @@ function imgBattery(){
} }
} }
function imgCharging() {
return {
width : 24, height : 24, bpp : 1,
transparent : 1,
buffer : require("heatshrink").decompress(atob("//+v///k///4AQPwBANgBoMxBoMb/P+h/w/kH8H4gfB+EBwfggHH4EAt4CBn4CBj4CBh4FCCIO/8EB//Agf/wEH/8Gh//x////fAQIA="))
}
}
function imgBpm() { function imgBpm() {
return { return {
width : 24, height : 24, bpp : 1, width : 24, height : 24, bpp : 1,
@ -176,7 +184,7 @@ var menu = [
], ],
[ [
function(){ return [ "Bangle", imgWatch() ] }, function(){ return [ "Bangle", imgWatch() ] },
function(){ return [ E.getBattery() + (Bangle.isCharging() ? "% ++" : "%"), imgBattery() ] }, function(){ return [ E.getBattery(), Bangle.isCharging() ? imgCharging() : imgBattery() ] },
function(){ return [ getSteps(), imgSteps() ] }, function(){ return [ getSteps(), imgSteps() ] },
function(){ return [ Math.round(Bangle.getHealthStatus("last").bpm) + " bpm", imgBpm()] }, function(){ return [ Math.round(Bangle.getHealthStatus("last").bpm) + " bpm", imgBpm()] },
] ]