#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

#120 in GUI

Download history 311/week @ 2023-11-20 378/week @ 2023-11-27 179/week @ 2023-12-04 365/week @ 2023-12-11 311/week @ 2023-12-18 110/week @ 2023-12-25 156/week @ 2024-01-01 212/week @ 2024-01-08 240/week @ 2024-01-15 266/week @ 2024-01-22 226/week @ 2024-01-29 264/week @ 2024-02-05 284/week @ 2024-02-12 281/week @ 2024-02-19 341/week @ 2024-02-26 349/week @ 2024-03-04

1,289 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–15MB
~182K SLoC