pub fn compile_with_config(
    path: impl AsRef<Path>,
    config: CompilerConfiguration
) -> Result<(), CompileError>
Expand description

Same as compile, but allow to specify a configuration.

Compile ui/hello.slint and select the “material” style:

let config =
    slint_build::CompilerConfiguration::new()
    .with_style("material".into());
slint_build::compile_with_config("ui/hello.slint", config).unwrap();