feat(display): add shared types (EventSource)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
12a612bba0
commit
691f17ea05
1 changed files with 9 additions and 0 deletions
9
pkg/display/types.go
Normal file
9
pkg/display/types.go
Normal 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
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue