How amnweb/thide works
THide is a Windows taskbar visibility utility. Users launch its tray-based GUI or issue CLI commands; the CLI can start the GUI, send it control messages, or manage login autostart. In GUI mode, the app enforces single-instance operation, dispatches tray and IPC events, and monitors taskbar visibility. The excerpts show the key modules and IPC mechanism, but omit portions of the GUI event handler, so detailed handler-to-action wiring is limited to documented behavior.
Main entry points: main.rs Application Entry · cli.rs CLI Commands
Components 14
CLI Control
- CLI Commands
src/cli.rs - Autostart Manager
src/cli.rs
GUI Runtime
- Application Entry
src/main.rs - Instance Guard
src/main.rs - Tray Menu
src/main.rs - GUI Event Loop
src/main.rs - IPC Window
src/main.rs
Taskbar Control
- Visibility Monitor
src/main.rs - State Manager
src/main.rs - Taskbar Discovery
src/main.rs - Visibility Control
src/main.rs
Other components
- User
- Windows Registry
- Windows Taskbar
Connections 22
- User → CLI Commands: runs commands
- User → Application Entry: launches GUI
- Application Entry → CLI Commands: dispatches CLI
- CLI Commands → Application Entry: starts GUI
- CLI Commands → IPC Window: posts commands
- CLI Commands → Autostart Manager: manages startup
- Autostart Manager → Windows Registry: writes or deletes
- Application Entry → Instance Guard: checks instance
- Application Entry → Tray Menu: creates menu
- Application Entry → GUI Event Loop: runs loop
- Application Entry → IPC Window: creates window
- IPC Window → GUI Event Loop: dispatches events
- Tray Menu → GUI Event Loop: provides actions
- GUI Event Loop → Visibility Control: handles actions
- GUI Event Loop → State Manager: enforces state
- Application Entry → Visibility Monitor: starts thread
- Visibility Monitor → Taskbar Discovery: checks visibility
- Visibility Monitor → Visibility Control: restores hidden state
- State Manager → Windows Taskbar: sets appbar state
- Visibility Control → Taskbar Discovery: finds taskbars
- Taskbar Discovery → Windows Taskbar: queries windows
- Visibility Control → Windows Taskbar: shows or hides