Menu ▾ ▴

#178 macOS: template (monochrome) tray icon option

closed
nobody
2026-08-16
2026-07-22
Anonymous
No

Originally created by: kristofferR

Counterpart to the Linux symbolic tray icon (Ref [#169]), and simpler on macOS: a monochrome menu-bar icon is a template image, which the system tints automatically for light/dark menu bars and accent states — no color-scheme heuristic needed.

  • Reuse the shared tray_icon_style: "color" | "symbolic" setting from [#169] (default "color"); the settings row becomes macOS+Linux instead of Linux-only. Coordinate: whichever issue lands first adds the setting + the shared monochrome asset (src-tauri/icons/tray/carrier-symbolic.png, white glyph + alpha).
  • macOS tray uses Tauri's TrayIconBuilder/TrayIcon (tray.rs): symbolic mode sets the monochrome icon and icon_as_template(true) (builder) / set_icon_as_template(true) (live toggle via apply_settings); color mode restores the full-color icon with template off.
  • The unread-count tray title (tray_unread_title) renders next to the icon and is unaffected.
  • Manual testing: toggle the setting live; check light + dark menu bar, an active (highlighted) menu-bar click state, and menu_bar_only mode.

Part of [#179].

Related

Tickets: #169
Tickets: #179
Tickets: #185
Tickets: #230

Discussion

  • Anonymous

    Anonymous - 2026-08-16

    Originally posted by: kristofferR

    Shipped in [#230], released in v1.9.0.

    The shared tray_icon_style setting now offers Color and Symbolic on macOS. Symbolic uses the shared monochrome asset with icon_as_template, so the system tints it for light and dark menu bars and highlight states, and it switches live without a restart.

     

    Related

    Tickets: #230

  • Anonymous

    Anonymous - 2026-08-16

    Ticket changed by: kristofferR

    • status: open --> closed
     

Log in to post a comment.