Some checks failed
Security Scan / security (push) Failing after 26s
Environment: - QueryFocusFollowsMouse IPC query - 9 new tests (accent colour, file manager, focus follows mouse) Context Menu: - TaskUpdate (remove-then-add semantics) - TaskDestroy (remove + release) - QueryGetAll - OnShutdown cleanup - 12 new tests All 17 packages build and test clean. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
25 lines
767 B
Go
25 lines
767 B
Go
// pkg/environment/messages.go
|
|
package environment
|
|
|
|
// QueryTheme returns the current theme. Result: ThemeInfo
|
|
type QueryTheme struct{}
|
|
|
|
// QueryInfo returns environment information. Result: EnvironmentInfo
|
|
type QueryInfo struct{}
|
|
|
|
// QueryAccentColour returns the system accent colour. Result: string
|
|
type QueryAccentColour struct{}
|
|
|
|
// TaskOpenFileManager opens the system file manager. Result: error only
|
|
type TaskOpenFileManager struct {
|
|
Path string `json:"path"`
|
|
Select bool `json:"select"`
|
|
}
|
|
|
|
// QueryFocusFollowsMouse returns whether the platform uses focus-follows-mouse. Result: bool
|
|
type QueryFocusFollowsMouse struct{}
|
|
|
|
// ActionThemeChanged is broadcast when the system theme changes.
|
|
type ActionThemeChanged struct {
|
|
IsDark bool `json:"isDark"`
|
|
}
|