mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-04 04:49:20 +08:00
18 lines
474 B
Go
18 lines
474 B
Go
package menu
|
|
|
|
// TrayMenu are the options
|
|
type TrayMenu struct {
|
|
|
|
// Label is the text we wish to display in the tray
|
|
Label string
|
|
|
|
// Icon is the name of the tray icon we wish to display.
|
|
// These are read up during build from <projectdir>/trayicons and
|
|
// the filenames are used as IDs, minus the extension
|
|
// EG: <projectdir>/trayicons/main.png can be referenced here with "main"
|
|
Icon string
|
|
|
|
// Menu is the initial menu we wish to use for the tray
|
|
Menu *Menu
|
|
}
|