Skip to content

mtkennerly/native-dialog-rs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

native-dialog

Crates.io License

A library to display file choosers and message boxes. Supports GNU/Linux, macOS and Windows.

Installation

cargo add native-dialog

Usage

use native_dialog::*;

let dialog = OpenMultipleFile {
    dir: None,
    filter: None,
};
let result = dialog.show().unwrap();

let message = format!("{:?}", result);

let dialog = MessageConfirm {
    title: "Do you want to open these files?",
    text: &message,
    typ: MessageType::Info,
};
let result = dialog.show().unwrap();

assert_eq!(result, true);

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages

  • Rust 100.0%