system-theme 0.3.0

A cross-platform Rust library to help build native-looking applications.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use system_theme::SystemTheme;

fn main() {
    let theme = SystemTheme::new().unwrap();
    println!("Theme kind: {:?}", theme.get_kind());
    println!("Theme scheme: {:?}", theme.get_scheme());
    println!("Theme contrast: {:?}", theme.get_contrast());
    println!("Theme accent: {:?}", theme.get_accent());

    // Full theme (with fallbacks for unsupported methods)
    println!("Theme: {:?}", theme.get_theme());
}