glasskit
Native Windows UI with a glass look, in Rust: a tray icon and menu, a frosted-glass popup, themed dialogs, and helpers for tray apps.
- Tray: an icon in the notification area with a menu of your own commands, and a wait loop that sleeps until a command, a deadline, or an unlock of the session.
- Popup: a frosted-glass popup with a question and choice buttons. It fades in without taking the keyboard focus, can show whether a choice was correct, and can dismiss itself after a countdown.
- Dialog: a small modal window of standard controls with typed handles, in the same colors.
- Helpers: start with Windows, single instance, efficiency mode, and whether the user can see a popup now.
All windows follow the Windows light or dark mode and the display scale.
Example
use Ui;
use Placement;
use ;
use ;
A longer example, a small quiz app, is in examples/quiz.rs: cargo run -p glasskit --example quiz.
Requirements
- Windows 10 or 11.
- Rust 1.88 or later.
License
MIT. See LICENSE.