mirror of https://github.com/espruino/BangleApps
Change charging icon
parent
7759297538
commit
a840b1a14a
|
@ -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()] },
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue