#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

#677 in GUI

Download history 627/week @ 2024-10-27 522/week @ 2024-11-03 264/week @ 2024-11-10 376/week @ 2024-11-17 486/week @ 2024-11-24 583/week @ 2024-12-01 894/week @ 2024-12-08 810/week @ 2024-12-15 323/week @ 2024-12-22 357/week @ 2024-12-29 691/week @ 2025-01-05 666/week @ 2025-01-12 728/week @ 2025-01-19 555/week @ 2025-01-26 807/week @ 2025-02-02 776/week @ 2025-02-09

2,881 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–12MB
~160K SLoC