Skip to content

fix: make system tray icon monochrome#1396

Open
mikejobrn wants to merge 1 commit into
glzr-io:mainfrom
mikejobrn:fix-macos-tray-icon
Open

fix: make system tray icon monochrome#1396
mikejobrn wants to merge 1 commit into
glzr-io:mainfrom
mikejobrn:fix-macos-tray-icon

Conversation

@mikejobrn

Copy link
Copy Markdown

Summary

This PR configures the system tray icon to render as a template on macOS, making it monochrome and allowing it to adapt dynamically to macOS light/dark themes.

Details

  • Configures TrayIconBuilder::with_icon_as_template(true) using conditional compilation (#[cfg(target_os = "macos")]).
  • Using conditional compilation is necessary since with_icon_as_template is only defined on the macOS target in the tray-icon crate; calling it directly on Windows targets would result in compilation failures.

Closes #1395

@github-project-automation github-project-automation Bot moved this to 📬 Needs triage in glazewm May 22, 2026
@lars-berger

Copy link
Copy Markdown
Member

nice! would you mind sharing a screenshot of how it looks (light & dark)?

@mikejobrn

Copy link
Copy Markdown
Author

nice! would you mind sharing a screenshot of how it looks (light & dark)?
Sure!

Captura de Tela 2026-05-23 às 18 18 29 Captura de Tela 2026-05-23 às 17 14 31

@mikejobrn mikejobrn changed the title fix(macOS): make system tray icon monochrome (template icon) fix: make system tray icon monochrome May 23, 2026
@mikejobrn
mikejobrn force-pushed the fix-macos-tray-icon branch from 73fa181 to 709741b Compare May 23, 2026 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 📬 Needs triage

Development

Successfully merging this pull request may close these issues.

[macOS] System tray / menu bar icon is colored instead of monochrome (template icon)

2 participants