gui/pkg/dock/messages.go
Snider 073794aed0 feat(dock): add dock/badge core.Service with Platform interface and IPC
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 14:40:41 +00:00

29 lines
891 B
Go

// pkg/dock/messages.go
package dock
// --- Queries (read-only) ---
// QueryVisible returns whether the dock icon is visible. Result: bool
type QueryVisible struct{}
// --- Tasks (side-effects) ---
// TaskShowIcon shows the dock/taskbar icon. Result: nil
type TaskShowIcon struct{}
// TaskHideIcon hides the dock/taskbar icon. Result: nil
type TaskHideIcon struct{}
// TaskSetBadge sets the dock/taskbar badge label.
// Empty string "" shows the default system badge indicator.
// Numeric "3", "99" shows unread count. Text "New", "Paused" shows brief status.
// Result: nil
type TaskSetBadge struct{ Label string }
// TaskRemoveBadge removes the dock/taskbar badge. Result: nil
type TaskRemoveBadge struct{}
// --- Actions (broadcasts) ---
// ActionVisibilityChanged is broadcast after a successful TaskShowIcon or TaskHideIcon.
type ActionVisibilityChanged struct{ Visible bool }