Skip to main content

Module tray_icon

Module tray_icon 

Source
Expand description

Integrates StatusNotifier tray functionality and provides GTK-facing control signals.

Uses the ksni crate to register a system tray icon with menu entries for Settings, Library, Pause/Resume, Sync Now, and Quit. Each action sends a signal over a tokio::sync::watch channel that the GTK main loop polls to trigger the corresponding window or operation.

Structs§

MimickTray
Represents the tray state shared with ksni menu callbacks and GTK main loop.
TrayHandles
Channels and handles returned by tray initialization to manage signals.

Functions§

build_tray
Asynchronously construct and spawn the system tray icon, returning control channels.