feat(display): add shared types (EventSource)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Snider 2026-03-13 12:15:45 +00:00
parent 12a612bba0
commit 691f17ea05

9
pkg/display/types.go Normal file
View file

@ -0,0 +1,9 @@
// pkg/display/types.go
package display
// EventSource abstracts the application event system (Wails insulation for WSEventManager).
// WSEventManager receives this instead of calling application.Get() directly.
type EventSource interface {
OnThemeChange(handler func(isDark bool)) func()
Emit(name string, data ...any) bool
}