Fix macOS menu bar tray icon size - #35
Open
jordan-unchained wants to merge 2 commits into
Open
Conversation
Tag the 32x32 PNG with scaleFactor 2.0 on darwin so it displays at 16pt instead of appearing roughly twice as large as other menu bar icons. Co-authored-by: Cursor <cursoragent@cursor.com>
djchase-uncd
approved these changes
May 28, 2026
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.
Summary
On macOS, the GPG Bridge menu bar (tray) icon rendered roughly twice as large as neighboring system icons. This change tags the existing 32×32 PNG with
scaleFactor: 2.0so macOS treats it as a @2x asset and displays it at the correct 16pt height.What changed
main.js—createTray()now loads the tray image throughnativeImageon darwin, re-encoding the PNG withscaleFactor: 2.0before passing it toTray.Why not
setTemplateImage?icons/png/32x32.pngis a full-color branded icon (cannon on a light background), not a monochrome template. Template mode strips color and tints opaque pixels, which makes the icon disappear or flatten into an unrecognizable blob in the menu bar.Test plan