You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: setup.rs
    path of file: ./repos/MarkFlowy/apps/desktop/src-tauri/src
    
    the code of the file until where you have to start completion: use crate::WindowExt;
use tauri::{utils::config::WebviewUrl, App, Manager, WebviewWindowBuilder, Window};

#[cfg(target_os = "macos")]
use tauri::TitleBarStyle;

pub fn init(app: &mut App) -> Result<(), Box<dyn std::error::Error>> {
    let app = app.handle().clone();

    // let theme = AppConf::theme_mode();

    let mut main_win =
        WebviewWindowBuilder
    
pub fn init(app: &mut App) -> Result<(), Box<dyn std::error::Error>> {
    let app = app.handle().clone();

    // let theme = AppConf::theme_mode();

    let mut main_win =
        WebviewWindowBuilder::new(&app, "main".to_string(), WebviewUrl::App("index.html".into()))
            .title("markflowy")
            .resizable(true)
            .fullscreen(false)
            // .theme(Some(theme))
            .inner_size(1200.0, 800.0)
            .min_inner_size(400.0, 400.0);

    #[cfg(target_os = "macos")]
    {
        main_win = main_win
            .title_bar_style(TitleBarStyle::Overlay)
            .hidden_title(true);
    }

    #[cfg(not(target_os = "macos"))]
    {
        main_win = main_win.decorations(false);
    }

    let window = main_win.build().unwrap();

    #[cfg(not(target_os = "linux"))]
    {
        window.set_shadow(true);
    }

    // #[cfg(target_os = "macos")]
    // window.set_transparent_titlebar(true, true);

    Ok(())
}