slint/demos/usecases/rust/build.rs
FloVanGH 0ce68f2922
usecases demo: adjust material style for android (#7766)
* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-04 09:05:35 +00:00

16 lines
414 B
Rust

// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: MIT
use slint_build::CompilerConfiguration;
use std::env;
fn main() {
let style = if env::var("TARGET").unwrap().contains("android") { "material" } else { "cosmic" }
.to_string();
slint_build::compile_with_config(
"../ui/app.slint",
CompilerConfiguration::new().with_style(style),
)
.unwrap();
}