5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 04:29:35 +08:00
wails/v2/pkg/options/systemtray.go
Lea Anthony b84a2e5255
Windows tray menus (#2181)
* Add example

* Add windows systray

* Add gitkeep

* use windows.GUID
2022-12-06 20:55:56 +11:00

27 lines
585 B
Go

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
}