#tray #desktop #desktop-applications #linux-api

tray-item

Super simple API to make tray icons/menus on Windows, Mac & Linux

10 releases (breaking)

0.10.0 Apr 7, 2024
0.9.0 Oct 18, 2023
0.8.0 Apr 29, 2023
0.7.1 Sep 8, 2022
0.4.0-alpha May 21, 2020

#552 in GUI

Download history 712/week @ 2024-09-28 725/week @ 2024-10-05 427/week @ 2024-10-12 661/week @ 2024-10-19 610/week @ 2024-10-26 576/week @ 2024-11-02 248/week @ 2024-11-09 365/week @ 2024-11-16 503/week @ 2024-11-23 578/week @ 2024-11-30 859/week @ 2024-12-07 850/week @ 2024-12-14 339/week @ 2024-12-21 345/week @ 2024-12-28 629/week @ 2025-01-04 540/week @ 2025-01-11

1,965 downloads per month
Used in 7 crates

MIT license

41KB
1K SLoC

Multi-platform Tray Indicator

Cargo Check CircleCI

Please see the examples as documentation is currently lacking.

Tray Indicator uses icons from gresources on Linux and .rc-files on Windows.
These resourses have to be packed into the final binary.

  • Linux
  • Windows
  • MacOS*

* MacOS does not allow running applications in threads other than main, meaning that it is not possible to listen for events in a new thread. See the macos.rs example for a how-to.

Todo:

  • Docs

Dependencies

~0–13MB
~162K SLoC