From: Eric Kuck Date: Thu, 10 Jan 2019 10:18:56 +0000 (+0200) Subject: Default view controller sizes X-Git-Tag: 0.0.20190207-1~115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97fec0d992537da67253437594abca45ca4f7430;p=thirdparty%2Fwireguard-apple.git Default view controller sizes Signed-off-by: Eric Kuck --- diff --git a/WireGuard/WireGuard/UI/macOS/StatusMenu.swift b/WireGuard/WireGuard/UI/macOS/StatusMenu.swift index 0f5d665..3a22d25 100644 --- a/WireGuard/WireGuard/UI/macOS/StatusMenu.swift +++ b/WireGuard/WireGuard/UI/macOS/StatusMenu.swift @@ -18,6 +18,7 @@ class StatusMenu: NSMenu { manageTunnelsRootVC = ManageTunnelsRootViewController(tunnelsManager: tunnelsManager) let window = NSWindow(contentViewController: manageTunnelsRootVC!) window.title = tr("macWindowTitleManageTunnels") + window.setContentSize(NSSize(width: 800, height: 480)) window.setFrameAutosaveName(NSWindow.FrameAutosaveName("ManageTunnelsWindow")) // Auto-save window position and size return window }() diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift index aecb3c9..b818d9f 100644 --- a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift +++ b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift @@ -24,8 +24,8 @@ class TunnelEditViewController: NSViewController { let textView: ConfTextView = { let textView = ConfTextView() - let minWidth: CGFloat = 120 - let minHeight: CGFloat = 60 + let minWidth: CGFloat = 550 + let minHeight: CGFloat = 310 textView.minSize = NSSize(width: 0, height: minHeight) textView.maxSize = NSSize(width: CGFloat.greatestFiniteMagnitude, height: CGFloat.greatestFiniteMagnitude) textView.autoresizingMask = [.width, .height]