native-dialog 0.3.0

A library to display dialogs. Supports GNU/Linux, macOS and Windows.
Documentation
# native-dialog

[![Crates.io](https://img.shields.io/crates/v/native-dialog.svg)](https://crates.io/crates/native-dialog)
[![License](https://img.shields.io/crates/l/native-dialog.svg)](LICENSE)

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

## Installation

```
cargo add native-dialog
```

## Usage

```rust
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](examples/windows_manifest) and [examples/windows_features](examples/windows_features) for example.