mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-02 17:23:20 +00:00
Remove PNG images, replace them with SVGs
This commit is contained in:
parent
e28ba796cd
commit
f45aa601c7
23 changed files with 84 additions and 308 deletions
|
@ -1,14 +1,14 @@
|
|||
import { Time } from "std-widgets.slint";
|
||||
|
||||
export global Utils {
|
||||
pure function formatZeroPadding(number: int) -> string {
|
||||
pure function format-zero-padding(number: int) -> string {
|
||||
if (number < 10) {
|
||||
return "0\{number}";
|
||||
}
|
||||
return number;
|
||||
}
|
||||
|
||||
public pure function timeToString(time: Time) -> string {
|
||||
return "\{formatZeroPadding(time.hour)}h\{formatZeroPadding(time.minute)}";
|
||||
public pure function time-to-string(time: Time) -> string {
|
||||
return "\{format-zero-padding(time.hour)}h\{format-zero-padding(time.minute)}";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue