25 releases

new 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

#225 in GUI

Download history 27/week @ 2024-01-20 28/week @ 2024-01-27 15/week @ 2024-02-03 26/week @ 2024-02-10 66/week @ 2024-02-17 70/week @ 2024-02-24 46/week @ 2024-03-02 84/week @ 2024-03-09 48/week @ 2024-03-16 46/week @ 2024-03-23 73/week @ 2024-03-30 29/week @ 2024-04-06 56/week @ 2024-04-13 68/week @ 2024-04-20 53/week @ 2024-04-27 309/week @ 2024-05-04

490 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