Skip to main content

Module tray

Module tray 

Source
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§

TrayMenuItemSpec
One entry in a tray context menu.

Functions§

build_tray_menu
Build a tauri::menu::Menu from 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_item fires with the clicked item’s id; on_left_click fires on a tray-icon left click (mouse up).