Skip to main content

Crate hyprcorrect_ui

Crate hyprcorrect_ui 

Source
Expand description

The hyprcorrect GUI: the egui preferences window and (later, M4) the keyboard-navigable suggestion popup.

All UI in this crate is platform-independent egui — Linux and macOS share the same code. The run_preferences entry handles a best-effort singleton lock so double-clicking “Open Preferences…” in the tray doesn’t open two windows.

See the “Configuration & GUI” section of DESIGN.md.

Modules§

autostart
“Start at login” toggle backed by an XDG autostart .desktop file.
icon
Hyprcorrect’s app icon, rasterized from a bundled SVG.

Functions§

run_preferences
Open the preferences window. Blocks until the user closes it.
run_review
Open the review popup for the daemon’s pending review request. Reads the request from the runtime file, shows the popup, and signals the daemon on exit so the apply happens against the originating window. Blocks until the user closes the popup.