forked from FOSS/BangleApps
Update app.js
parent
3b69fab597
commit
1640b4861c
|
@ -39,6 +39,7 @@ Bangle.on('touch', (n, e) => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//visuals
|
||||||
function drawTap(x,y,c,b){ //blue box
|
function drawTap(x,y,c,b){ //blue box
|
||||||
if (d.getDate() != nowDate){
|
if (d.getDate() != nowDate){
|
||||||
tap=0;
|
tap=0;
|
||||||
|
@ -73,13 +74,15 @@ function boxTap(x, y, color) { //progress
|
||||||
}
|
}
|
||||||
|
|
||||||
function milestone(phrase){ //progress
|
function milestone(phrase){ //progress
|
||||||
g.setFont(nameFont).drawString(phrase, 170, 20).setFontAlign(-1,0);
|
g.setFontAlign(1,0);
|
||||||
|
g.setFont(nameFont).drawString(phrase, 170, 20);
|
||||||
}
|
}
|
||||||
|
|
||||||
function encourage(phrase){
|
function encourage(phrase){ //non-bar tap
|
||||||
g.setFont(nameFont).drawString(phrase, 65, 20).setFontAlign(0,0);
|
g.setFont(nameFont).drawString(phrase, 65, 20).setFontAlign(-1,0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//time
|
||||||
function isDay(state){
|
function isDay(state){
|
||||||
var d = new Date();
|
var d = new Date();
|
||||||
var currentHr = d.getHours();
|
var currentHr = d.getHours();
|
||||||
|
|
Loading…
Reference in New Issue