Support changing tray icon at runtime

Support both icon & text in tray
This commit is contained in:
Lea Anthony
2020-12-24 10:05:55 +11:00
parent 8625e99625
commit f0c932713b
12 changed files with 67 additions and 40 deletions
+1 -11
View File
@@ -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.