Desktop installer: taller default window so the log has room
Build Desktop Installer / Build (win-arm64) (push) Successful in 10s
Build / Build (push) Successful in 13s
Build Desktop Installer / Build (win-x64) (push) Successful in 10s

Start at 900 px height (min 720), both capped to the screen's working area.
This commit is contained in:
niklascfw committed 2026-11-14 13:19:48 +01:00
1 parent 5b2499900f
commit 41aafb66eb
1 file changed
+4 -2
+4 -2
View File
@@ -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);