native-dialog
A library to display file choosers and message boxes. Supports GNU/Linux, macOS and Windows.
Installation
cargo add native-dialog
Usage
use *;
let dialog = OpenMultipleFile ;
let result = dialog.show.unwrap;
let message = format!;
let dialog = MessageConfirm ;
let result = dialog.show.unwrap;
assert_eq!;
Misc
Why the dialogs look ugly/blurry on Windows?
Turn on crate features or embed manifests into the .exe
to enable visual styling and dpi awareness for your program. Check out examples/windows_manifest and examples/windows_features for example.