Merge pull request #3339 from Koell/teatimer

TeaTimer 0.6
pull/3353/head
thyttan 2024-04-12 22:20:17 +02:00 committed by GitHub
commit f6432ef7b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 6 deletions

View File

@ -3,3 +3,4 @@
0.03: Fix BG/FG Color if e.g. theme background is black
0.04: Get time zone from settings for showing the clock
0.05: Minor code improvements
0.06: Adjust format of title, save counter before leaving help screen

View File

@ -1,6 +1,6 @@
# Tea Timer app
A simple timer. You can easyly set up the time. The initial time is 2:30
A simple timer. You can easily set up the time. The initial time is 2:30
On the first screen, you can
- tap to get help

View File

@ -18,7 +18,7 @@ E.setTimeZone(setting.timezone);
// Title showing current time
function appTitle() {
return "Tea Timer " + currentTime();
return "Tea Timer\n" + currentTime();
}
function currentTime() {
@ -28,7 +28,7 @@ function currentTime() {
}
function timeFormated(sec) {
var min = Math.floor(sec / 60);
let min = Math.floor(sec / 60);
sec = sec % 60;
if (sec < 10) sec = "0" + sec;
return min + ":" + sec;
@ -223,6 +223,7 @@ function showHelp() {
}
// return to start
else if (state == states.help) {
counterStart = counter;
initTimer();
}
}
@ -233,4 +234,4 @@ initDragEvents();
Bangle.on('touch', function(button, xy) { showHelp(); });
// event handling for button1
setWatch(buttonPressed, BTN1, {repeat: true});
initTimer();
initTimer();

View File

@ -1,8 +1,8 @@
{
"id": "teatimer",
"name": "Tea Timer",
"version": "0.05",
"description": "A simple timer. You can easyly set up the time.",
"version": "0.06",
"description": "A simple timer. You can easily set up the time.",
"icon": "teatimer.png",
"type": "app",
"tags": "tool",