#tray #desktop

tray-item

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

9 releases (breaking)

0.9.0 Oct 18, 2023
0.8.0 Apr 29, 2023
0.7.1 Sep 8, 2022
0.7.0 Feb 22, 2022
0.4.0-alpha May 21, 2020

#85 in GUI

Download history 349/week @ 2023-08-08 371/week @ 2023-08-15 247/week @ 2023-08-22 269/week @ 2023-08-29 449/week @ 2023-09-05 311/week @ 2023-09-12 247/week @ 2023-09-19 329/week @ 2023-09-26 470/week @ 2023-10-03 518/week @ 2023-10-10 543/week @ 2023-10-17 630/week @ 2023-10-24 469/week @ 2023-10-31 622/week @ 2023-11-07 457/week @ 2023-11-14 454/week @ 2023-11-21

2,067 downloads per month
Used in 3 crates

MIT license

38KB
973 lines

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
~166K SLoC