mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
27 lines
644 B
Go
27 lines
644 B
Go
package menu
|
|
|
|
type TrayType string
|
|
|
|
const (
|
|
TrayIcon TrayType = "icon"
|
|
TrayLabel TrayType = "label"
|
|
)
|
|
|
|
// TrayOptions are the options
|
|
type TrayOptions struct {
|
|
// Type is the type of tray item we want
|
|
Type TrayType
|
|
|
|
// Label is what is displayed initially when the type is TrayLabel
|
|
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
|
|
}
|