diff --git a/apps.json b/apps.json index df49a3442..eb09669c7 100644 --- a/apps.json +++ b/apps.json @@ -4593,9 +4593,9 @@ }, { "id":"a_speech_timer", - "name":"A Speech Timer", + "name":"Speech Timer", "icon": "app.png", - "version":"1.00", + "version":"1.01", "description": "A timer designed to help keeping your speeches and presentations to time.", "tags": "tool,timer", "readme":"README.md", diff --git a/apps/a_speech_timer/ChangeLog b/apps/a_speech_timer/ChangeLog index 4a8e3fbe7..b3aa9e0dd 100644 --- a/apps/a_speech_timer/ChangeLog +++ b/apps/a_speech_timer/ChangeLog @@ -1 +1,2 @@ 1.00: Release (2021/12/01) +1.01: Grey font when timer is frozen (2021/12/04) diff --git a/apps/a_speech_timer/app.js b/apps/a_speech_timer/app.js index dae2545b2..440cd92c6 100644 --- a/apps/a_speech_timer/app.js +++ b/apps/a_speech_timer/app.js @@ -63,7 +63,7 @@ function countDown() { Bangle.on('touch',(touchside, touchdata)=>{ if (!islocked && istimeron && touchdata.y > (100+10)) { - Bangle.buzz(40); + Bangle.buzz(40); istimeron = false; clearInterval(timerinterval); } else if (touchdata.y > 24 && touchdata.y < (100-10)) { @@ -134,20 +134,20 @@ function draw() { else if (current_value >= current_from) { g.setBgColor("#8F8"); } g.clearRect(0,24,176,176); - g.reset(); - g.setFontAlign(0, 0); - + g.reset().setFontAlign(0, 0).setColor(istimeron ? "#000" : "#444"); g.setFont("Michroma36").drawString(timeToString(current_value), 88, 62); + g.reset().setFontAlign(0, 0); + g.setFont("HaxorNarrow7x17"); g.drawString(timeToString(current_from), 44, 62+26); g.drawString(timeToString(current_mid), 88, 62+26); g.drawString(timeToString(current_to), 132, 62+26); - + if (current_value >= current_from) { g.drawRect(44-1,62+26+9,44+1,62+26+9+1); } if (current_value >= current_mid) { g.drawRect(88-1,62+26+9,88+1,62+26+9+1); } if (current_value >= current_to) { g.drawRect(132-1,62+26+9,132+1,62+26+9+1); } - + if (showInstructions) { g.setFont("6x8").drawString("Tapping timer locks buttons", 88, 100+5); g.setFont("6x8").drawString("<= Swipe to change time =>", 88, 168); @@ -159,7 +159,7 @@ function draw() { g.drawString(timeToString(newtimer_left_to), 44, 138+9); g.drawString(timeToString(newtimer_right_from), 132, 138-9); g.drawString(timeToString(newtimer_right_to), 132, 138+9); - + g.drawRect(0+8,138-24, 88-9+1, 138+22+1); g.drawRect(0+8,138-24, 88-9, 138+22); g.drawRect(88+8,138-24, 176-10+1, 138+22+1);