feat(v2): implement operator monitoring window

This commit is contained in:
ila
2026-07-22 21:24:10 +08:00
parent 8e093acb9b
commit a98005e631
8 changed files with 335 additions and 58 deletions
+2 -2
View File
@@ -4,13 +4,13 @@ import "testing"
func TestMonitorWindowSpecUsesLightMonitoringLayout(t *testing.T) {
spec := MonitorWindowSpec()
if spec.Title != "Silver Pose V2 · 技术 Spike" {
if spec.Title != "Silver Pose V2" {
t.Fatalf("title = %q", spec.Title)
}
if spec.Width != 1120 || spec.Height != 720 {
t.Fatalf("size = %dx%d, want 1120x720", spec.Width, spec.Height)
}
if spec.BackgroundHex != "#F3F6FA" || spec.AlertHex != "#C62828" {
if spec.BackgroundHex != "#EAF1F8" || spec.AlertHex != "#C62828" {
t.Fatalf("unexpected colours: background=%s alert=%s", spec.BackgroundHex, spec.AlertHex)
}
}