Mountain/Binary/Tray/mod.rs
1
2//! # Binary::Tray
3//!
4//! System tray integration for the Mountain application.
5//! Manages tray icon lifecycle: initial creation (`EnableTray`),
6//! theme-aware icon switching (`SwitchTrayIcon`), menu construction
7//! (Open / Hide / Quit items), and window-visibility toggling on
8//! left-click. Degrades gracefully if the desktop environment has no
9//! tray support.
10//!
11//! ## Planned Work
12//!
13//! - Tray notification badge support
14//! - Tray icon animation for background activity indication
15//! - Context-menu state (enabled/disabled, checked/unchecked) per item
16//! - Optimal icon sizes for HiDPI settings across platforms
17//! - Platform-specific tray behavior investigation (macOS, Windows, Linux)
18
19/// Create and register the initial system tray icon and menu.
20pub mod EnableTray;
21
22/// `#[tauri::command]` that switches the tray icon between light and dark
23/// variants.
24pub mod SwitchTrayIcon;