mirror of https://github.com/qarmin/czkawka
Default dark theme
parent
49871e433c
commit
9225025157
@ -1,3 +1,9 @@
|
||||
use std::env;
|
||||
|
||||
fn main() {
|
||||
slint_build::compile("ui/main_window.slint").unwrap();
|
||||
if env::var("SLINT_STYLE").is_err() || env::var("SLINT_STYLE") == Ok("".into()) {
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue