We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 065f2ab commit 93f1df4Copy full SHA for 93f1df4
pkg/agent/icon/icon.go
@@ -2,5 +2,8 @@ package icon
2
3
import _ "embed"
4
5
-//go:embed icon_mono.png
6
-var Icon []byte
+//go:embed icon_light.png
+var IconLight []byte
7
+
8
+//go:embed icon_dark.png
9
+var IconDark []byte
pkg/agent/icon/icon_dark.png
41.4 KB
pkg/agent/icon/icon_mono.png pkg/agent/icon/icon_light.png
pkg/agent/tray.go
@@ -23,12 +23,17 @@ func (a *Agent) startSystray() {
23
panic(err) // handle properly please!
24
}
25
}, func(b bool) {
26
+ if b {
27
+ systray.SetIcon(icon.IconLight)
28
+ } else {
29
+ systray.SetIcon(icon.IconDark)
30
+ }
31
})
32
33
34
func (a *Agent) systrayReady() {
35
a.systrayStarted = true
- systray.SetIcon(icon.Icon)
36
+ systray.SetTemplateIcon(icon.IconLight, icon.IconLight)
37
a.systrayConfigUpdate()
38
39
0 commit comments