Support disabling tray menu. Fix font sizing. Tooltip in tray menu support.

This commit is contained in:
Lea Anthony
2021-03-18 20:54:53 +11:00
parent 6424579a9e
commit 39bfa5d910
6 changed files with 56 additions and 11 deletions

View File

@@ -23,6 +23,15 @@ type TrayMenu struct {
FontSize int
FontName string
// Tooltip
Tooltip string
// Callback function when menu clicked
//Click Callback `json:"-"`
// Disabled makes the item unselectable
Disabled bool
// Menu is the initial menu we wish to use for the tray
Menu *Menu