feat(v2): complete Go inference and UI spike
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package ui
|
||||
|
||||
// WindowSpec locks the visual baseline tested by the Windows UI Spike. The
|
||||
// production V2 app will consume the same semantic colours and medium desktop
|
||||
// layout after the decoding/inference pipeline is complete.
|
||||
type WindowSpec struct {
|
||||
Title string
|
||||
Width int
|
||||
Height int
|
||||
BackgroundHex string
|
||||
AlertHex string
|
||||
}
|
||||
|
||||
func MonitorWindowSpec() WindowSpec {
|
||||
return WindowSpec{
|
||||
Title: "Silver Pose V2 · 技术 Spike",
|
||||
Width: 1120,
|
||||
Height: 720,
|
||||
BackgroundHex: "#F3F6FA",
|
||||
AlertHex: "#C62828",
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package ui
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestMonitorWindowSpecUsesLightMonitoringLayout(t *testing.T) {
|
||||
spec := MonitorWindowSpec()
|
||||
if spec.Title != "Silver Pose V2 · 技术 Spike" {
|
||||
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" {
|
||||
t.Fatalf("unexpected colours: background=%s alert=%s", spec.BackgroundHex, spec.AlertHex)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user