From cc1ba32e2a9491d5e9efd995076e1acb2cd72ec6 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Sat, 14 Oct 2023 13:38:53 +0200 Subject: [PATCH] Allow setting SLINT_STYLE for testing purposes --- build.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); }