From 544a3cd794355d0ed0aa5ff6744ce80de22cdcda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=BB=CF=89=E3=83=BB=EF=BC=88=E7=AB=B9=E5=AD=90?= =?UTF-8?q?=EF=BC=89?= Date: Wed, 30 Sep 2026 14:40:54 +0800 Subject: [PATCH 1/2] fix(window): center the main window properly on startup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Platform: desktop Fix(zh-Hant): 應用程式啟動時主視窗會正確置中顯示 Fix(en-US): the main window is now properly centered on startup --- apps/desktop/src-tauri/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/desktop/src-tauri/src/lib.rs b/apps/desktop/src-tauri/src/lib.rs index 446cc8f..96051d5 100644 --- a/apps/desktop/src-tauri/src/lib.rs +++ b/apps/desktop/src-tauri/src/lib.rs @@ -118,6 +118,7 @@ pub fn run() { log::info!(target: "app", "隱藏啟動(開機自動啟動或更新後重啟):只在系統匣"); window::hide_main(app); } else if let Some(window) = app.get_webview_window("main") { + let _ = window.center(); let _ = window.show(); } }; From bb772f658cf24c237a39db7c5160d57d6da879d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=BB=CF=89=E3=83=BB=EF=BC=88=E7=AB=B9=E5=AD=90?= =?UTF-8?q?=EF=BC=89?= Date: Wed, 30 Sep 2026 15:14:00 +0800 Subject: [PATCH 2/2] fix(window): center the settings window upon creation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Platform: desktop Fix(zh-Hant): 設定視窗建立時會置中顯示 Fix(en-US): the settings window now centers upon creation --- packages/core/src/lib/windows.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/src/lib/windows.ts b/packages/core/src/lib/windows.ts index f79d056..ea37700 100644 --- a/packages/core/src/lib/windows.ts +++ b/packages/core/src/lib/windows.ts @@ -26,6 +26,7 @@ export async function openSettings(): Promise { title: "TREM-Lite 設定", width: 970, height: 590, + center: true, resizable: false, decorations: false, transparent: !isMac,