hello_wgpu/
hello_wgpu.rs

1fn main() -> Result<(), Box<dyn std::error::Error>> {
2    let app = thyme::AppBuilder::new()
3        .with_logger()
4        .with_title("Thyme wgpu Demo")
5        .with_window_size(1280.0, 720.0)
6        .with_base_dir("examples/data")
7        .with_theme_files(&["themes/base.yml", "themes/pixel.yml"])
8        .with_font_dir("fonts")
9        .with_image_dir("images")
10        .build_wgpu()?;
11
12    app.main_loop(|ui| {
13        ui.window("window", |ui| {
14            ui.gap(20.0);
15    
16            ui.button("label", "Hello, World!");
17        });
18    });
19}