controls broked

This commit is contained in:
ntr committed 2023-08-05 17:38:17 +10:00
1 parent b8059a2511
commit 324062ecec
9 files changed
+900 -1670

No files matched your search

+4 -2
View File
@@ -32,17 +32,19 @@ public class TimingNotice {
public Label ToLabel() {
Label l = Category switch {
NoticeCategory.Initial => new Label($"{TimeSpan.FromSeconds(Seconds):m\\:ss\\.fff}"),
NoticeCategory.Slower => new Label($"+{Seconds:0.000}"),
NoticeCategory.Faster => new Label($"-{Seconds:0.000}"),
NoticeCategory.Fastest => new Label($"-{Seconds:0.000}"),
NoticeCategory.Initial => new Label($"{TimeSpan.FromSeconds(Seconds):m\\:ss\\.fff}"),
_ => new Label($"-{Seconds:0.000}"),
};
string colourClass = Category switch {
NoticeCategory.Initial => "",
NoticeCategory.Slower => "yellow",
NoticeCategory.Faster => "green",
NoticeCategory.Fastest => "purple",
NoticeCategory.Initial => "",
_ => "",
};
l.AddToClassList(colourClass);