#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

#469 in GUI

Download history 533/week @ 2024-09-12 595/week @ 2024-09-19 645/week @ 2024-09-26 765/week @ 2024-10-03 465/week @ 2024-10-10 622/week @ 2024-10-17 626/week @ 2024-10-24 562/week @ 2024-10-31 354/week @ 2024-11-07 333/week @ 2024-11-14 472/week @ 2024-11-21 506/week @ 2024-11-28 709/week @ 2024-12-05 1022/week @ 2024-12-12 459/week @ 2024-12-19 227/week @ 2024-12-26

2,506 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
~158K SLoC