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).
This commit is contained in:
Stu Leak 2025-12-04 01:42:31 -05:00
parent 0499cf7cb6
commit 9a63c62deb

View File

@ -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,