mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
Support loading multiple tray icons
This commit is contained in:
@@ -7,8 +7,20 @@ const (
|
||||
TrayLabel TrayType = "label"
|
||||
)
|
||||
|
||||
// TrayOptions are the options
|
||||
type TrayOptions struct {
|
||||
Type TrayType
|
||||
// Type is the type of tray item we want
|
||||
Type TrayType
|
||||
|
||||
// Label is what is displayed initially when the type is TrayLabel
|
||||
Label string
|
||||
Menu *Menu
|
||||
|
||||
// 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user