launcher icon, timer format

This commit is contained in:
Gyuri Horák 2023-09-25 20:32:56 +02:00
parent 2a8a1e66c3
commit b571f011e5
Signed by: dyuri
GPG Key ID: 4993F07B3EAE8D38
2 changed files with 5 additions and 1 deletions

BIN
resources/drawables/launcher_icon.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

View File

@ -216,7 +216,11 @@ class RepaFieldView extends WatchUi.DataField {
timerColor = Graphics.COLOR_YELLOW;
}
timerField.setColor(timerColor);
timerField.setText(trh.format("%02d") + ":" + trm.format("%02d"));
if (trh > 0) {
timerField.setText(trh.format("%d") + ":" + trm.format("%02d"));
} else {
timerField.setText(trm.format("%02d"));
}
if (timerSecField != null) {
timerSecField.setColor(darken(timerColor, 1.5));
timerSecField.setText(trs.format("%02d"));