controls broked
This commit is contained in:
1 parent
b8059a2511
commit
324062ecec
9 files changed
+900
-1670
No files matched your search
+4
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user