Repository navigation
Make the macOS menu bar icon a template image - #5528
Merged
Merged
Conversation
…tch the menu bar Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Maxime Landry (mlandry-devolutions)
requested review from
Gabriel Dufresne (GabrielDuf)
and
a balanced review from Copilot
October 16, 2026 14:46
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The focused platform-specific changes include subscription cleanup and have no identified blocking issues.
0 open findings
What changed in this PR
Improves tray icon visibility independently of UniGetUI’s app theme.
Changes:
- Uses a macOS template icon for automatic menu bar tinting.
- Makes Linux icons follow desktop appearance changes, with event cleanup on disposal.
- Preserves Windows registry-based theme selection.
| File | Description |
|---|---|
src/UniGetUI.Avalonia/Infrastructure/TrayService.cs |
Updates platform-specific icon selection and appearance-change subscriptions. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Gabriel Dufresne (GabrielDuf)
approved these changes
Oct 16, 2026
Gabriel Dufresne (GabrielDuf)
deleted the
fix/macos-menu-bar-icon-tone
branch
October 16, 2026 16:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On macOS the tray icon variant (black or white) was picked from UniGetUI's own theme. With the app in Dark mode, the menu bar could show a white glyph on a light bar, next to black system icons. Following the system appearance is not enough either: on macOS 26 the menu bar tone comes from the wallpaper.
MacOSProperties.SetIsTemplateIcon), so macOS tints it to match the menu bar, like its own icons. The status dot keeps its shape but loses its colour.PlatformSettings) and refreshes when it changes. The handler is removed on dispose.Tested on macOS 26.7.1 with a light and a dark wallpaper: the icon is black, then white, without restarting.
Relates to UNI-35
🤖 Generated with Claude Code