INNER CODE UNIT · Rust
create_main_window
Blur009/Blur-AutoClicker · src-tauri/src/lib.rs:103
fn create_main_window(app: &tauri::App) -> tauri::Result<()> {
let mut builder =
tauri::WebviewWindowBuilder::new(app, "main", tauri::WebviewUrl::App("index.html".into()))
.title("BlurAutoClicker")
.visible(false)
.inner_size(500.0, 150.0)
.resizable(false)
.fullscreen(false)
.decorations(false)
.transparent(true)
.maximizable(false)
.shadow(false);
// Set our own icon at creation so Windows associates the window with it
// rather than the bundled EXE icon resource (which can shadow runtime
// updates in release builds).
if let Some(icon) = crate::icon::default_icon_image() {
builder = builder.icon(icon)?;