Windows tray menus (#2181)

* Add example

* Add windows systray

* Add gitkeep

* use windows.GUID
This commit is contained in:
Lea Anthony
2022-12-06 20:55:56 +11:00
committed by GitHub
parent 0581ad03b1
commit b84a2e5255
38 changed files with 5234 additions and 2 deletions
+26
View File
@@ -0,0 +1,26 @@
package options
import (
"github.com/wailsapp/wails/v2/pkg/menu"
)
// SystemTray contains options for the system tray
type SystemTray struct {
LightModeIcon *SystemTrayIcon
DarkModeIcon *SystemTrayIcon
Title string
Tooltip string
StartHidden bool
Menu *menu.Menu
OnLeftClick func()
OnRightClick func()
OnLeftDoubleClick func()
OnRightDoubleClick func()
OnMenuClose func()
OnMenuOpen func()
}
// SystemTrayIcon represents a system tray icon
type SystemTrayIcon struct {
Data []byte
}