#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

#517 in GUI

Download history 650/week @ 2024-09-22 730/week @ 2024-09-29 688/week @ 2024-10-06 427/week @ 2024-10-13 689/week @ 2024-10-20 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 648/week @ 2025-01-05

2,215 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
~161K SLoC