From 41aafb66ebcfce38eef0994390f1e57a0f7d6256 Mon Sep 17 00:00:00 2001 From: niklascfw Date: Sat, 14 Nov 2026 13:19:48 +0100 Subject: [PATCH] Desktop installer: taller default window so the log has room Start at 900 px height (min 720), both capped to the screen's working area. --- desktop/OmniNX.DesktopInstaller/MainForm.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/desktop/OmniNX.DesktopInstaller/MainForm.cs b/desktop/OmniNX.DesktopInstaller/MainForm.cs index e623b23..51e20f1 100644 --- a/desktop/OmniNX.DesktopInstaller/MainForm.cs +++ b/desktop/OmniNX.DesktopInstaller/MainForm.cs @@ -37,8 +37,10 @@ public sealed class MainForm : Form public MainForm() { Text = "OmniNX Desktop Installer"; - MinimumSize = new Size(820, 640); - Size = new Size(900, 700); + // Tall enough that the log box has room at startup, but never taller than the screen. + var workArea = Screen.PrimaryScreen?.WorkingArea ?? new Rectangle(0, 0, 1280, 800); + MinimumSize = new Size(Math.Min(820, workArea.Width), Math.Min(720, workArea.Height)); + Size = new Size(Math.Min(900, workArea.Width), Math.Min(900, workArea.Height)); StartPosition = FormStartPosition.CenterScreen; Font = new Font("Segoe UI", 9F); Icon = LoadFormIcon() ?? Icon.ExtractAssociatedIcon(Application.ExecutablePath);