#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

#395 in GUI

Download history 566/week @ 2024-08-04 462/week @ 2024-08-11 431/week @ 2024-08-18 490/week @ 2024-08-25 447/week @ 2024-09-01 439/week @ 2024-09-08 499/week @ 2024-09-15 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 360/week @ 2024-11-17

1,837 downloads per month
Used in 6 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
~154K SLoC