gui/pkg/environment/messages.go
Virgil 29dc0d9877
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
refactor(gui): make theme override declarative
2026-04-02 20:22:47 +00:00

29 lines
863 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"`
}
// TaskSetTheme applies an application theme override when supported.
// Theme values: "dark", "light", or "system".
type TaskSetTheme struct {
Theme string `json:"theme,omitempty"`
IsDark bool `json:"isDark,omitempty"`
}
// ActionThemeChanged is broadcast when the system theme changes.
type ActionThemeChanged struct {
IsDark bool `json:"isDark"`
}