Skip to content

Commit

Permalink
Allow setting SLINT_STYLE for testing purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
jpnurmi committed Oct 14, 2023
1 parent e771a74 commit cc1ba32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
@@ -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();
}

0 comments on commit cc1ba32

Please sign in to comment.