From 530be0fe5c07ab9fa69b5b5329c8fc20de7768df Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Thu, 16 Jul 2026 17:46:51 +0800 Subject: [PATCH] fix(tray): redesign macOS menu bar glyph for legibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The tray reused logo.svg (window outline + title-bar rule + colored cursor block), which turns to mush at 18pt in template mode: the color flattens to alpha and the icon reads as a card/wallet, not a terminal. Replace it with a dedicated tray.svg — a bold window outline with a prompt chevron and underscore, drawn for menu-bar size. logo.svg is untouched; the tray was its only code consumer. --- assets/tray.svg | 5 +++++ src/ui/tray/icon.rs | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 assets/tray.svg diff --git a/assets/tray.svg b/assets/tray.svg new file mode 100644 index 00000000..42e060bc --- /dev/null +++ b/assets/tray.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/ui/tray/icon.rs b/src/ui/tray/icon.rs index 1e9b924b..1d7c92a6 100644 --- a/src/ui/tray/icon.rs +++ b/src/ui/tray/icon.rs @@ -2,7 +2,7 @@ //! own SVG path only yields a tinted alpha mask, so the tray draws its own). //! //! Two states per platform: -//! - macOS: the outline terminal glyph (`logo.svg`) as a *template* image — +//! - macOS: the outline terminal glyph (`tray.svg`) as a *template* image — //! the system recolors its alpha for light/dark menu bars. Attention swaps //! to a non-template variant: the glyph recolored to a mid-grey that reads //! on both bar appearances, plus an amber badge (template images can't @@ -23,7 +23,7 @@ pub(super) struct RgbaImage { } #[cfg(target_os = "macos")] -const GLYPH_SVG: &[u8] = include_bytes!("../../../assets/logo.svg"); +const GLYPH_SVG: &[u8] = include_bytes!("../../../assets/tray.svg"); #[cfg(not(target_os = "macos"))] const GLYPH_SVG: &[u8] = include_bytes!("../../../assets/app-icon.svg");