Expand description
Tray icon setup helpers.
Builds a tray icon with a caller-supplied menu and click behavior. This
module owns the tauri::tray wiring boilerplate; the app supplies menu
item labels/ids and what each event should do.
Structs§
- Tray
Menu Item Spec - One entry in a tray context menu.
Functions§
- build_
tray_ menu - Build a
tauri::menu::Menufrom a flat list of item specs. - install_
tray - Install a tray icon using the app’s default window icon, with
tooltip,menu, and the two behaviors every launcher-style tray needs:on_menu_itemfires with the clicked item’s id;on_left_clickfires on a tray-icon left click (mouse up).