aliveline/build.rs
2ndbeam ba7bc67b6c feat: Reworked configuration
- Added colors.aliases table
- Colors can also be defined with aliases
- Event color is calculated with priorities
- Added paths table
- Renamed log_path as paths.logs
- Renamed colors.background_text as colors.text
- Added colors.fallback field
- Default values are now taken from source config.toml on compilation
2026-04-10 18:54:19 +03:00

17 lines
523 B
Rust

fn main() {
let mut style = String::from("cosmic");
#[cfg(all(feature = "dark", feature = "light"))]
compile_error!("Features \"dark\" and \"light\" are mutually exclusive");
if cfg!(feature = "dark") {
style.push_str("-dark");
} else if cfg!(feature = "light") {
style.push_str("-light");
}
let config = slint_build::CompilerConfiguration::new()
.with_style(style);
slint_build::compile_with_config("ui/app-window.slint", config).expect("Slint build failed");
}