diff --git a/build.rs b/build.rs index 3b07e2c..add3df0 100644 --- a/build.rs +++ b/build.rs @@ -1,7 +1,8 @@ fn main() { + let style = std::env::var("SLINT_STYLE").unwrap_or("fluent".into()); slint_build::compile_with_config( "ui/main.slint", - slint_build::CompilerConfiguration::new().with_style("fluent".into()), + slint_build::CompilerConfiguration::new().with_style(style), ) .unwrap(); }