use nxui::natives_and_messaging::{AWS_UTILITY, WS_NORMAL};
use nxui::window::Attributes;
use nxui::window::window::{Window, WindowHandler};

fn main() {
    nxui::initialize();
    let win = Window::new(Attributes::new(
        WS_NORMAL,
        "Utility Window".to_string(),
        "io.github.lattesyobon.utility".to_string(),
        400,
        675,
        100,
        100,
    ));
    win.run(run_app);
}

fn run_app(wh: WindowHandler) {
    wh.set_advanced_style(AWS_UTILITY);
    wh.show();
}