25 releases

0.2.0 May 9, 2024
0.1.5 May 9, 2024
0.1.3 Dec 13, 2021
0.1.2 Nov 27, 2021
0.1.0-beta.18 Jul 15, 2020

#452 in GUI

Download history 35/week @ 2024-08-19 11/week @ 2024-08-26 57/week @ 2024-09-02 32/week @ 2024-09-09 114/week @ 2024-09-16 150/week @ 2024-09-23 84/week @ 2024-09-30 23/week @ 2024-10-07 57/week @ 2024-10-14 82/week @ 2024-10-21 62/week @ 2024-10-28 69/week @ 2024-11-04 55/week @ 2024-11-11 27/week @ 2024-11-18 49/week @ 2024-11-25 78/week @ 2024-12-02

215 downloads per month
Used in bitwarden-autotype

MIT license

44KB
1K SLoC

TrayIcon

Currently I target Windows tray icon implementation, with popup menu, click, double click events. Goal is to provide a channel for events and ability to plug in winit event loop easily.

Open here a full working example with winit crate 🢅

TODO

Provide coordinates of the Tray Icon area for custom popups.

Alternatives

Most mature alternative is qdot's systray-rs. Unfortunately I got frustrated with the API in it and decided to rewrite my own. This however largely does not use the code in it, instead I loaned my old C/C++ code repository as a template.

Change log

  • 0.2.0 - 2024-05-09
    • Removed dependency to winit crate, now setting a sender is a function.
    • Added show_menu, this means user must call it to show the menu even on right click. Previously right click always showed the menu.

Dependencies

~175KB