aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-01-03 19:34:50 +0530
committerRoopesh Chander <roop@roopc.net>2019-01-14 14:52:32 +0530
commit09f4be17de84ed93e484a38fbc2e04008efca2ae (patch)
tree5249d7c7cab31d02bbd34146409d52463adeb3eb /WireGuard/WireGuard/UI
parentmacOS: Manage tunnels: Add a box around the detail view (diff)
downloadwireguard-apple-09f4be17de84ed93e484a38fbc2e04008efca2ae.tar.xz
wireguard-apple-09f4be17de84ed93e484a38fbc2e04008efca2ae.zip
macOS: Manage tunnels: Adjust spacings
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuard/UI')
-rw-r--r--WireGuard/WireGuard/UI/macOS/ViewController/ManageTunnelsRootViewController.swift5
-rw-r--r--WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift2
2 files changed, 4 insertions, 3 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/ManageTunnelsRootViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/ManageTunnelsRootViewController.swift
index 3f16673..71dc8b8 100644
--- a/WireGuard/WireGuard/UI/macOS/ViewController/ManageTunnelsRootViewController.swift
+++ b/WireGuard/WireGuard/UI/macOS/ViewController/ManageTunnelsRootViewController.swift
@@ -21,8 +21,9 @@ class ManageTunnelsRootViewController: NSViewController {
override func loadView() {
view = NSView()
- let horizontalSpacing: CGFloat = 30
+ let horizontalSpacing: CGFloat = 20
let verticalSpacing: CGFloat = 20
+ let centralSpacing: CGFloat = 10
let container = NSLayoutGuide()
view.addLayoutGuide(container)
@@ -50,7 +51,7 @@ class ManageTunnelsRootViewController: NSViewController {
tunnelsListView.leadingAnchor.constraint(equalTo: container.leadingAnchor),
tunnelDetailContainerView.topAnchor.constraint(equalTo: container.topAnchor),
tunnelDetailContainerView.bottomAnchor.constraint(equalTo: container.bottomAnchor),
- tunnelDetailContainerView.leadingAnchor.constraint(equalTo: tunnelsListView.trailingAnchor, constant: horizontalSpacing),
+ tunnelDetailContainerView.leadingAnchor.constraint(equalTo: tunnelsListView.trailingAnchor, constant: centralSpacing),
tunnelDetailContainerView.trailingAnchor.constraint(equalTo: container.trailingAnchor),
tunnelsListView.widthAnchor.constraint(equalTo: container.widthAnchor, multiplier: 0.3)
])
diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift
index 9ca9536..4a10f7d 100644
--- a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift
+++ b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift
@@ -133,7 +133,7 @@ class TunnelDetailTableViewController: NSViewController {
containerView.trailingAnchor.constraint(equalTo: scrollView.trailingAnchor),
containerView.leadingAnchor.constraint(equalTo: bottomControlsContainer.leadingAnchor),
containerView.trailingAnchor.constraint(equalTo: bottomControlsContainer.trailingAnchor),
- bottomControlsContainer.heightAnchor.constraint(equalToConstant: 60),
+ bottomControlsContainer.heightAnchor.constraint(equalToConstant: 32),
scrollView.bottomAnchor.constraint(equalTo: bottomControlsContainer.topAnchor),
bottomControlsContainer.bottomAnchor.constraint(equalTo: containerView.bottomAnchor),
statusCheckbox.leadingAnchor.constraint(equalTo: bottomControlsContainer.leadingAnchor),