Switch from QT to Slint

This commit is contained in:
Vyn 2024-11-19 16:57:32 +01:00
parent 85be9fea57
commit c7bb9f1f29
45 changed files with 10680 additions and 2815 deletions

12
ui/utils.slint Normal file
View file

@ -0,0 +1,12 @@
export global Utils {
public pure function format-zero-padding(number: int) -> string {
if (number < 10) {
return "0\{number}";
}
return number;
}
public pure function format-countdown(countdown: int) -> string {
return "\{format-zero-padding(countdown / 60)}:\{format-zero-padding(Math.mod(countdown, 60))}";
}
}