-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
/
main.rs
32 lines (27 loc) · 862 Bytes
/
main.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
#![cfg_attr(
all(not(debug_assertions), target_os = "windows"),
windows_subsystem = "windows"
)]
use tauri::{window, Manager, WindowUrl};
fn main() {
let tauri_app = tauri::Builder::default()
.build(tauri::generate_context!(
"../../examples/helloworld/tauri.conf.json"
))
.expect("error while running tauri application");
window::WindowBuilder::new(&tauri_app.app_handle(), "main", WindowUrl::default())
.title("Kryp")
.resizable(true)
.decorations(true)
.always_on_top(false)
.transparent_titlebar(true)
// .transparent_title(false)
.inner_size(1050.0, 800.0)
.min_inner_size(300.0, 200.0)
.fullscreen(false)
.build();
tauri_app.run(|_, _| {});
}