feat: use OS default window manager

This commit is contained in:
wonfen
2025-05-14 21:32:26 +08:00
parent 4f86f3c0ec
commit 7f0ebbd83d
4 changed files with 29 additions and 19 deletions

View File

@@ -16,6 +16,7 @@
"deep-link:default",
"autostart:allow-enable",
"autostart:allow-disable",
"autostart:allow-is-enabled"
"autostart:allow-is-enabled",
"core:window:allow-set-theme"
]
}

View File

@@ -295,7 +295,7 @@ pub fn create_window(is_show: bool) -> bool {
)
.title("Clash Verge")
.center()
.decorations(false)
.decorations(true)
.fullscreen(false)
.inner_size(DEFAULT_WIDTH as f64, DEFAULT_HEIGHT as f64)
.min_inner_size(520.0, 520.0)

View File

@@ -58,12 +58,6 @@
}
},
"app": {
"windows": [
{
"label": "main",
"titleBarStyle": "Overlay"
}
],
"security": {
"capabilities": [
"desktop-capability",