Crates.io | trayicon |
lib.rs | trayicon |
version | 0.2.0 |
source | src |
created_at | 2020-07-11 21:27:45.017859 |
updated_at | 2024-05-09 17:47:09.558154 |
description | Tray Icon, that thing in the corner |
homepage | https://github.com/ciantic/trayicon-rs/ |
repository | https://github.com/ciantic/trayicon-rs/ |
max_upload_size | |
id | 264195 |
size | 114,267 |
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 🢅
Provide coordinates of the Tray Icon area for custom popups.
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.
winit
crate, now setting a sender is a function.show_menu
, this means user must call it to show the menu even on right click. Previously right click always showed the menu.