From 10025720014cf836a5135d9219a36f8a957572c9 Mon Sep 17 00:00:00 2001 From: arunpratap <27122003ap@gmail.com> Date: Thu, 31 Jul 2025 19:10:40 +0530 Subject: [PATCH] Fix: Titlebar white in dark mode (resolved by updating window theme config) --- ChatGPT | 1 + src-tauri/src/core/window.rs | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 160000 ChatGPT diff --git a/ChatGPT b/ChatGPT new file mode 160000 index 000000000..a6de9a8b6 --- /dev/null +++ b/ChatGPT @@ -0,0 +1 @@ +Subproject commit a6de9a8b61077fa63ad5c3ecbe2bc12e0cb4b4b9 diff --git a/src-tauri/src/core/window.rs b/src-tauri/src/core/window.rs index 9ecdf31e3..744ad538f 100644 --- a/src-tauri/src/core/window.rs +++ b/src-tauri/src/core/window.rs @@ -6,12 +6,17 @@ use crate::core::constant::WINDOW_SETTINGS; pub fn open_settings(app: AppHandle) { match app.get_webview_window(WINDOW_SETTINGS) { Some(window) => { - window.show().unwrap(); + let _ = window.unminimize(); + let _ = window.set_focus(); + let _ = window.show(); } None => { WebviewWindowBuilder::new(&app, WINDOW_SETTINGS, WebviewUrl::App("index.html".into())) + .decorations(true) + .transparent(false) // set to true if you want frameless look + .theme(Some(tauri::Theme::Dark)) // ⚠️ Only works on Tauri >=1.5 .build() .unwrap(); } } -} +} \ No newline at end of file