Browse Source

添加图标应用使用

master
viviman 3 years ago
parent
commit
95f3d41e85
  1. 0
      golang_learn/data_func/go_to_0tray/icon.ico
  2. 2
      golang_learn/data_func/go_to_0tray/main.go

0
golang_learn/data_func/go_to_tray/icon.ico → golang_learn/data_func/go_to_0tray/icon.ico

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 66 KiB

2
golang_learn/data_func/go_to_tray/main.go → golang_learn/data_func/go_to_0tray/main.go

@ -20,7 +20,7 @@ func main() {
func onReady() {
timezone = "默认文字"
systray.SetIcon(getIcon("./icon.ico"))
systray.SetIcon(getIcon("data_func/go_to_tray/icon.ico"))
submenu := systray.AddSubMenu("子菜单")
_ = submenu.AddSubMenuItem("开始", "", 0)
Loading…
Cancel
Save