added system tray icon

This commit is contained in:
Prashant Gupta 2019-03-27 17:40:22 -07:00
parent b242ba4a8f
commit f5f5363405
2 changed files with 1457 additions and 2 deletions

1456
assets/icon/trayIcon.go Normal file

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,7 @@ import (
"fmt"
"github.com/getlantern/systray"
"github.com/getlantern/systray/example/icon"
"github.com/prashantgupta24/automatic-mouse-mover/assets/icon"
"github.com/prashantgupta24/automatic-mouse-mover/pkg/mousemover"
)
@ -15,7 +15,6 @@ func main() {
func onReady() {
go func() {
systray.SetIcon(icon.Data)
systray.SetTitle("AMM")
ammStart := systray.AddMenuItem("Start", "start the app")
ammStop := systray.AddMenuItem("Stop", "stop the app")
systray.AddSeparator()