
// ## WebView API
// webview.eval(&format!("updateTicks({}, {})", counter, user_data))
// exit() : Window exit

pub fn make_gui<'a>(cfg: AppConfig, html: &'a str, title: &'a str) -> WebView<'a, ()>{
    let db_path = cfg.db_path.clone();
    let mut webview = web_view::builder()
        .title(title)
        .content(Content::Html(html))
        .size(cfg.window_width, cfg.window_height)
        .frameless(cfg.window_frameless)