From 67133686570c19cfe21d728a8e5f889206da5c14 Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 5 Dec 2025 11:44:54 +0800 Subject: [PATCH] fix(windows): use system titlebar to prevent black screen on startup The `titleBarStyle: "Overlay"` setting in tauri.conf.json causes black screen and crash on Windows due to WebView2 compatibility issues. Add platform-specific config `tauri.windows.conf.json` to override titleBarStyle to "Visible" on Windows while keeping the overlay style on macOS for the immersive UI experience. Fixes black screen issue on Windows for v3.8.x releases. --- src-tauri/tauri.windows.conf.json | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src-tauri/tauri.windows.conf.json diff --git a/src-tauri/tauri.windows.conf.json b/src-tauri/tauri.windows.conf.json new file mode 100644 index 00000000..0f64fc6f --- /dev/null +++ b/src-tauri/tauri.windows.conf.json @@ -0,0 +1,11 @@ +{ + "$schema": "https://schema.tauri.app/config/2", + "app": { + "windows": [ + { + "label": "main", + "titleBarStyle": "Visible" + } + ] + } +}