mirror of
https://github.com/qarmin/czkawka
synced 2024-11-12 01:10:45 +00:00
10 lines
352 B
Rust
10 lines
352 B
Rust
|
use std::env;
|
||
|
|
||
|
fn main() {
|
||
|
if env::var("SLINT_STYLE").is_err() || env::var("SLINT_STYLE") == Ok(String::new()) {
|
||
|
slint_build::compile_with_config("ui/main_window.slint", slint_build::CompilerConfiguration::new().with_style("fluent-dark".into())).unwrap();
|
||
|
} else {
|
||
|
slint_build::compile("ui/main_window.slint").unwrap();
|
||
|
}
|
||
|
}
|