Skip to content

Application: Tray icons on Windows #1382

Closed

Description

@oneo-me

Context

Part of #1306. The roadmap's Application and windows section lists this item (line 148 of docs/roadmap.md at f7fc2f5c) with no issue.

Reference: Shell_NotifyIcon; NSH's #988

Acceptance

  • An icon shows its image and menu, reports clicks and anchors a panel with Shell_NotifyIconGetRect; rasterizing a drawn icon whenever it changes remains

For: 开发@柚子

Activity

  1. added
    enhancement
    on Nov 21, 2026
  2. self-assigned this
    on Nov 22, 2026
  3. houko commented on Nov 23, 2026

    @houko
    Collaborator

    Windows tray icon support and click/panel anchoring remain incomplete in the current backend. Leaving open for implementation and native tests.

  4. houko commented on Nov 23, 2026

    @houko
    Collaborator

    Current main now satisfies the requested Windows tray behavior. internal/platform/windows/tray.go uses Shell_NotifyIconW and Shell_NotifyIconGetRect, decodes primary/secondary clicks, reports the tray bounds for panel anchoring, recreates icons after TaskbarCreated, and rasterizes both PNG and drawn-view icons. Native tests cover drawn icon refresh, image-load refresh, alpha preservation, shell registration, click decoding, menu ownership, and tray cleanup. Closing this issue as completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions