# Viewer for Slint This program is a viewer for `.slint` files from the [Slint Project](https://slint.dev). ## Installation The viewer can be installed from crates.io: ```bash cargo install slint-viewer ``` Alternatively, you can download one of our pre-built binaries for Linux or Windows: 1. Open 2. Click on the latest release 3. From "Assets" download either `slint-viewer-linux.tar.gz` for a Linux x86-64 binary or `slint-viewer-windows.zip` for a Windows x86-64 binary. 4. Uncompress the downloaded archive and run `slint-viewer`/`slint-viewer.exe`. ## Usage You can open .slint files by just passing it as an argument: ```bash slint-viewer path/to/myfile.slint ``` ## Command line arguments - `--auto-reload`: Automatically watch the file system, and reload when it changes - `--save-data `: When exiting, write the value of public properties to a json file. Only property whose types can be serialized to json will be written. This option is incompatible with `--auto-reload` - `--load-data `: Load the values of public properties from a json file. - `-I `: Add an include path to look for imported .slint files or images. - `-L `: Add a library path to look for `@library` imports. - `--style