mirror of https://github.com/espruino/BangleApps
teatimer Fix issue setting colors after showMessage (fix #2025)
parent
b6f501b6bf
commit
70d5bf40de
|
@ -0,0 +1,2 @@
|
|||
0.01: New App!
|
||||
0.02: Fix issue setting colors after showMessage
|
|
@ -67,9 +67,9 @@ function startTimer() {
|
|||
- hint for help in state start
|
||||
*/
|
||||
function showCounter(withHint) {
|
||||
//g.clear();
|
||||
g.reset(); // workaround for E.showMessage bg color in 2v14 and earlier
|
||||
E.showMessage("", appTitle());
|
||||
g.setFontAlign(0,0); // center font
|
||||
g.reset().setFontAlign(0,0); // center font
|
||||
// draw the current counter value
|
||||
g.setBgColor(-1).setColor(0,0,1); // blue
|
||||
g.setFont("Vector",20); // vector font, 20px
|
||||
|
@ -123,9 +123,9 @@ function countUp() {
|
|||
outOfTime();
|
||||
return;
|
||||
}
|
||||
g.clear();
|
||||
g.reset(); // workaround for E.showMessage bg color in 2v14 and earlier
|
||||
E.showMessage("", appTitle());
|
||||
g.setFontAlign(0,0); // center font
|
||||
g.reset().setFontAlign(0,0); // center font
|
||||
g.setBgColor(-1).setColor(0,0,1); // blue
|
||||
g.setFont("Vector",20); // vector font, 20px
|
||||
g.drawString("Timer: " + timeFormated(counterStart),80,55);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "teatimer",
|
||||
"name": "Tea Timer",
|
||||
"version": "0.01",
|
||||
"version": "0.02",
|
||||
"description": "A simple timer. You can easyly set up the time.",
|
||||
"icon": "teatimer.png",
|
||||
"type": "app",
|
||||
|
|
Loading…
Reference in New Issue