Skip to content

Enhance traybar icons #857

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Nov 20, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use SetIconTemplate, this allows theme switching on macos
  • Loading branch information
umbynos committed Nov 17, 2023
commit e5f7f6e2d5562981d417d8c16208e3623d85f6c3
4 changes: 2 additions & 2 deletions systray/systray_real.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (s *Systray) Quit() {

// start creates a systray icon with menu options to go to arduino create, open debug, pause/quit the agent
func (s *Systray) start() {
systray.SetIcon(icon.GetIcon())
systray.SetTemplateIcon(icon.GetIcon(), icon.GetIcon())

// Add version
menuVer := systray.AddMenuItem("Agent version "+s.Version, "")
Expand Down Expand Up @@ -136,7 +136,7 @@ func RemoveCrashes() {

// starthibernate creates a systray icon with menu options to resume/quit the agent
func (s *Systray) startHibernate() {
systray.SetIcon(icon.GetIconHiber())
systray.SetTemplateIcon(icon.GetIconHiber(), icon.GetIconHiber())

mResume := systray.AddMenuItem("Resume Agent", "")
systray.AddSeparator()
Expand Down