From 9a63c62deb62c8b3b7d82d63142b075997f0ae72 Mon Sep 17 00:00:00 2001 From: Stu Leak Date: Thu, 4 Dec 2025 01:42:31 -0500 Subject: [PATCH] Center window on screen at startup Added window centering to improve initial presentation: - Call w.CenterOnScreen() after setting window size - Window now opens centered rather than at OS default position - Maintains existing resizing and maximization support The window is already maximizable via SetFixedSize(false). Users can maximize using OS window controls (double-click titlebar, maximize button, or OS shortcuts like F11/Super+Up). --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 1bc9126..ffb5e5b 100644 --- a/main.go +++ b/main.go @@ -1511,7 +1511,8 @@ func runGUI() { // Use a generous default window size that fits typical desktops without overflowing. w.Resize(fyne.NewSize(1280, 800)) w.SetFixedSize(false) // Allow manual resizing - logging.Debug(logging.CatUI, "window initialized with manual resizing enabled") + w.CenterOnScreen() + logging.Debug(logging.CatUI, "window initialized with manual resizing and centering enabled") state := &appState{ window: w,