tauri
tauri copied to clipboard
[feat] Listening events for tray icons
Describe the problem
Listening events for tray icons, such as mouse entry/leave, etc. And return to the position of the mouse and the position of the system tray.
Describe the solution you'd like
pub enum SystemTrayEvent {
Entry {
tray_id: String,
position: PhysicalPosition<f64>,
size: PhysicalSize<f64>,
},
Leave {
tray_id: String,
position: PhysicalPosition<f64>,
size: PhysicalSize<f64>,
}
}
Alternatives considered
No response
Additional context
No response
Is there any way to achieve similar functionality in the v1 version?
Similar to the "mouse-leave" and "mouse-enter" events in electronjs.