teatimer Fix issue setting colors after showMessage (fix #2025)

pull/2027/head
Gordon Williams 2022-07-06 09:42:31 +01:00
parent b6f501b6bf
commit 70d5bf40de
3 changed files with 7 additions and 5 deletions

2
apps/teatimer/ChangeLog Normal file
View File

@ -0,0 +1,2 @@
0.01: New App!
0.02: Fix issue setting colors after showMessage

View File

@ -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);

View File

@ -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",