dark-light 1.1.1

Detect if dark mode or light mode is enabled
Documentation
1
2
3
4
5
fn main() {
    if let Ok("apple") = std::env::var("CARGO_CFG_TARGET_VENDOR").as_deref() {
        println!("cargo:rustc-link-lib=framework=AppKit");
    }
}