gui/pkg/display/messages.go
Virgil a4c696ec01
Some checks failed
Security Scan / security (push) Failing after 20s
Test / test (push) Successful in 1m28s
Implement display service spec wrappers
2026-04-02 13:48:27 +00:00

17 lines
586 B
Go

// pkg/display/messages.go
package display
// ActionIDECommand is broadcast when a menu handler triggers an IDE command
// (save, run, build). Replaces direct s.app.Event().Emit("ide:*") calls.
// Listeners (e.g. editor windows) handle this via HandleIPCEvents.
type ActionIDECommand struct {
Command string `json:"command"` // "save", "run", "build"
}
// EventIDECommand is the WS event type for IDE commands.
const EventIDECommand EventType = "ide.command"
// Theme is the display-level theme summary exposed by the service API.
type Theme struct {
IsDark bool `json:"isDark"`
}