[PR #3416] fix(macos): make connected tray icon a template image to follow menu bar theme #3290

Open
opened 2026-11-07 17:58:59 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amnezia-vpn/amnezia-client/pull/3416
Author: @anton988
Created: 11/5/2026
Status: 🔄 Open

Base: dev ← Head: fix/macos-tray-icon-template


📝 Commits (1)

  • b86ccd7 fix(macos): make connected tray icon a template image to follow menu bar theme

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 client/platforms/macos/macosstatusicon.mm (+1 -0)

📄 Description

Fixes #1979

On macOS the connected tray icon (active.png) is white and is set as a regular
image, so it is almost invisible on a light menu bar. Marking it as a template
image lets macOS tint it according to the menu bar appearance.

Only active.png is made a template. default.png (gray) and error.png (red)
are colored, so making them templates would turn them monochrome and the
connection states would no longer be distinguishable.

Testing: I did not build the full app. I checked the approach separately by
showing the same icon files in the menu bar with isTemplate on and off. With
the template flag the icon turns black on a light menu bar and stays white on a
dark one; the gray and red icons stay unchanged. Screenshots attached.

Снимок экрана — 2026-11-05 в 22 53 46 Снимок экрана — 2026-11-05 в 22 50 42

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/amnezia-vpn/amnezia-client/pull/3416 **Author:** [@anton988](https://github.com/anton988) **Created:** 11/5/2026 **Status:** 🔄 Open **Base:** `dev` ← **Head:** `fix/macos-tray-icon-template` --- ### 📝 Commits (1) - [`b86ccd7`](https://github.com/amnezia-vpn/amnezia-client/commit/b86ccd744ea9f14d5ad5a7e93954e0d5996d17d8) fix(macos): make connected tray icon a template image to follow menu bar theme ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `client/platforms/macos/macosstatusicon.mm` (+1 -0) </details> ### 📄 Description Fixes #1979 On macOS the connected tray icon (`active.png`) is white and is set as a regular image, so it is almost invisible on a light menu bar. Marking it as a template image lets macOS tint it according to the menu bar appearance. Only `active.png` is made a template. `default.png` (gray) and `error.png` (red) are colored, so making them templates would turn them monochrome and the connection states would no longer be distinguishable. Testing: I did not build the full app. I checked the approach separately by showing the same icon files in the menu bar with `isTemplate` on and off. With the template flag the icon turns black on a light menu bar and stays white on a dark one; the gray and red icons stay unchanged. Screenshots attached. <img width="969" height="36" alt="Снимок экрана — 2026-11-05 в 22 53 46" src="https://github.com/user-attachments/assets/52db7c38-ad04-45d2-8e99-9b0e0f0593f5" /> <img width="969" height="36" alt="Снимок экрана — 2026-11-05 в 22 50 42" src="https://github.com/user-attachments/assets/6e9f2a5e-40bb-4316-84be-7411d45b5301" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-client#3290
No description provided.