macOS: Manage tunnels: Adjust spacings

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander 2019-01-03 19:34:50 +05:30
parent 60e18dfdd5
commit 09f4be17de
2 changed files with 4 additions and 3 deletions

View File

@ -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)
])

View File

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