mirror of
https://github.com/prashantgupta24/automatic-mouse-mover.git
synced 2025-01-22 04:35:55 +00:00
added system tray icon
This commit is contained in:
parent
b242ba4a8f
commit
f5f5363405
1456
assets/icon/trayIcon.go
Normal file
1456
assets/icon/trayIcon.go
Normal file
File diff suppressed because it is too large
Load Diff
@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/getlantern/systray"
|
"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"
|
"github.com/prashantgupta24/automatic-mouse-mover/pkg/mousemover"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -15,7 +15,6 @@ func main() {
|
|||||||
func onReady() {
|
func onReady() {
|
||||||
go func() {
|
go func() {
|
||||||
systray.SetIcon(icon.Data)
|
systray.SetIcon(icon.Data)
|
||||||
systray.SetTitle("AMM")
|
|
||||||
ammStart := systray.AddMenuItem("Start", "start the app")
|
ammStart := systray.AddMenuItem("Start", "start the app")
|
||||||
ammStop := systray.AddMenuItem("Stop", "stop the app")
|
ammStop := systray.AddMenuItem("Stop", "stop the app")
|
||||||
systray.AddSeparator()
|
systray.AddSeparator()
|
||||||
|
Loading…
Reference in New Issue
Block a user