#tray #desktop #desktop-applications

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

#179 in GUI

Download history 240/week @ 2024-01-25 207/week @ 2024-02-01 271/week @ 2024-02-08 303/week @ 2024-02-15 315/week @ 2024-02-22 325/week @ 2024-02-29 390/week @ 2024-03-07 375/week @ 2024-03-14 292/week @ 2024-03-21 341/week @ 2024-03-28 434/week @ 2024-04-04 401/week @ 2024-04-11 333/week @ 2024-04-18 460/week @ 2024-04-25 330/week @ 2024-05-02 168/week @ 2024-05-09

1,341 downloads per month
Used in 4 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