fix(window): default to custom titlebar on startup (#6419)

* fix(window): default to custom titlebar on startup

* docs: Changelog.md
This commit is contained in:
Slinetrac 2026-03-04 18:48:36 +08:00 committed by GitHub
parent 39d8a0ee35
commit 05cdebd7ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -21,5 +21,6 @@
- 优化切换节点时的延迟
- 优化托盘退出快捷键显示
- 优化首次启动节点信息刷新
- 默认使用内置窗口控件
</details>

View File

@ -61,8 +61,8 @@ pub async fn build_new_window() -> Result<WebviewWindow, String> {
)
.title("Clash Verge")
.center()
// Using WindowManager::prefer_system_titlebar to control if show system built-in titlebar
// .decorations(true)
// Default to custom titlebar; users can switch to system titlebar in settings.
.decorations(false)
.fullscreen(false)
.inner_size(DEFAULT_WIDTH, DEFAULT_HEIGHT)
.min_inner_size(MINIMAL_WIDTH, MINIMAL_HEIGHT)