fn main() -> wry::Result<()> { use wry::{ application::{ event::{Event, StartCause, WindowEvent}, event_loop::{ControlFlow, EventLoop}, window::WindowBuilder, }, webview::WebViewBuilder, }; let event_loop = EventLoop::new(); let window = WindowBuilder::new() .with_title("Progrium Test") .with_decorations(false) .with_transparent(true) .build(&event_loop)?; let _webview = WebViewBuilder::new(window)? .with_transparent(true) //.with_url("https://progrium.com")? .with_url( r#"data:text/html, "#, )? .build()?; event_loop.run(move |event, _, control_flow| { *control_flow = ControlFlow::Wait; match event { Event::NewEvents(StartCause::Init) => println!("Started"), Event::WindowEvent { event: WindowEvent::CloseRequested, .. } => *control_flow = ControlFlow::Exit, _ => (), } }); }