fix(tray): redesign macOS menu bar glyph for legibility

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.
This commit is contained in:
l0ng-ai
2026-07-16 17:46:51 +08:00
parent b51b238aef
commit 530be0fe5c
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
<svg width="120" height="120" viewBox="0 0 120 120" xmlns="http://www.w3.org/2000/svg">
<rect x="11" y="21" width="98" height="78" rx="18" fill="none" stroke="#000" stroke-width="9"/>
<path d="M34 48 L50 61 L34 74" fill="none" stroke="#000" stroke-width="9" stroke-linecap="round" stroke-linejoin="round"/>
<line x1="60" y1="76" x2="82" y2="76" stroke="#000" stroke-width="9" stroke-linecap="round"/>
</svg>

After

Width:  |  Height:  |  Size: 414 B

+2 -2
View File
@@ -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");