mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
Support changing tray icon at runtime
Support both icon & text in tray
This commit is contained in:
@@ -1,18 +1,8 @@
|
||||
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 is the text we wish to display in the tray
|
||||
Label string
|
||||
|
||||
// Icon is the name of the tray icon we wish to display.
|
||||
|
||||
Reference in New Issue
Block a user