|
@@ -139,11 +139,12 @@ final class DashboardView: NSView, NSTextFieldDelegate {
|
|
|
layer?.backgroundColor = Theme.pageBackground.cgColor
|
|
layer?.backgroundColor = Theme.pageBackground.cgColor
|
|
|
|
|
|
|
|
contentStack.orientation = .horizontal
|
|
contentStack.orientation = .horizontal
|
|
|
- contentStack.spacing = 20
|
|
|
|
|
|
|
+ contentStack.spacing = 10
|
|
|
contentStack.distribution = .fill
|
|
contentStack.distribution = .fill
|
|
|
contentStack.translatesAutoresizingMaskIntoConstraints = false
|
|
contentStack.translatesAutoresizingMaskIntoConstraints = false
|
|
|
contentStack.alignment = .height
|
|
contentStack.alignment = .height
|
|
|
- contentStack.edgeInsets = NSEdgeInsets(top: 24, left: 24, bottom: 24, right: 24)
|
|
|
|
|
|
|
+ // Tighter chrome insets so panels sit closer to the window edges (especially leading / top under the title bar).
|
|
|
|
|
+ contentStack.edgeInsets = NSEdgeInsets(top: 10, left: 12, bottom: 20, right: 20)
|
|
|
|
|
|
|
|
chromeContainer.translatesAutoresizingMaskIntoConstraints = false
|
|
chromeContainer.translatesAutoresizingMaskIntoConstraints = false
|
|
|
chromeContainer.wantsLayer = true
|
|
chromeContainer.wantsLayer = true
|
|
@@ -159,7 +160,7 @@ final class DashboardView: NSView, NSTextFieldDelegate {
|
|
|
sidebar.wantsLayer = true
|
|
sidebar.wantsLayer = true
|
|
|
sidebar.layer?.backgroundColor = Theme.sidebarBackground.cgColor
|
|
sidebar.layer?.backgroundColor = Theme.sidebarBackground.cgColor
|
|
|
sidebar.layer?.cornerRadius = 16
|
|
sidebar.layer?.cornerRadius = 16
|
|
|
- sidebar.edgeInsets = NSEdgeInsets(top: 18, left: 14, bottom: 18, right: 14)
|
|
|
|
|
|
|
+ sidebar.edgeInsets = NSEdgeInsets(top: 16, left: 12, bottom: 16, right: 12)
|
|
|
sidebar.translatesAutoresizingMaskIntoConstraints = false
|
|
sidebar.translatesAutoresizingMaskIntoConstraints = false
|
|
|
|
|
|
|
|
mainHost.translatesAutoresizingMaskIntoConstraints = false
|
|
mainHost.translatesAutoresizingMaskIntoConstraints = false
|
|
@@ -193,7 +194,7 @@ final class DashboardView: NSView, NSTextFieldDelegate {
|
|
|
|
|
|
|
|
let topInset = NSView()
|
|
let topInset = NSView()
|
|
|
topInset.translatesAutoresizingMaskIntoConstraints = false
|
|
topInset.translatesAutoresizingMaskIntoConstraints = false
|
|
|
- topInset.heightAnchor.constraint(equalToConstant: 32).isActive = true
|
|
|
|
|
|
|
+ topInset.heightAnchor.constraint(equalToConstant: 18).isActive = true
|
|
|
|
|
|
|
|
configureSearchBar()
|
|
configureSearchBar()
|
|
|
|
|
|
|
@@ -278,8 +279,8 @@ final class DashboardView: NSView, NSTextFieldDelegate {
|
|
|
jobListingsContainer.leadingAnchor.constraint(equalTo: jobListingsScrollView.contentView.leadingAnchor),
|
|
jobListingsContainer.leadingAnchor.constraint(equalTo: jobListingsScrollView.contentView.leadingAnchor),
|
|
|
jobListingsContainer.widthAnchor.constraint(equalTo: jobListingsScrollView.contentView.widthAnchor),
|
|
jobListingsContainer.widthAnchor.constraint(equalTo: jobListingsScrollView.contentView.widthAnchor),
|
|
|
|
|
|
|
|
- greetingLabel.leadingAnchor.constraint(equalTo: mainOverlay.leadingAnchor, constant: 24),
|
|
|
|
|
- greetingLabel.trailingAnchor.constraint(equalTo: mainOverlay.trailingAnchor, constant: -24),
|
|
|
|
|
|
|
+ greetingLabel.leadingAnchor.constraint(equalTo: mainOverlay.leadingAnchor, constant: 16),
|
|
|
|
|
+ greetingLabel.trailingAnchor.constraint(equalTo: mainOverlay.trailingAnchor, constant: -16),
|
|
|
subtitleLabel.leadingAnchor.constraint(equalTo: greetingLabel.leadingAnchor),
|
|
subtitleLabel.leadingAnchor.constraint(equalTo: greetingLabel.leadingAnchor),
|
|
|
subtitleLabel.trailingAnchor.constraint(equalTo: greetingLabel.trailingAnchor)
|
|
subtitleLabel.trailingAnchor.constraint(equalTo: greetingLabel.trailingAnchor)
|
|
|
])
|
|
])
|
|
@@ -1132,7 +1133,7 @@ final class DashboardView: NSView, NSTextFieldDelegate {
|
|
|
upgradeDescription.font = .systemFont(ofSize: 12, weight: .regular)
|
|
upgradeDescription.font = .systemFont(ofSize: 12, weight: .regular)
|
|
|
upgradeDescription.textColor = Theme.secondaryText
|
|
upgradeDescription.textColor = Theme.secondaryText
|
|
|
upgradeDescription.alignment = .center
|
|
upgradeDescription.alignment = .center
|
|
|
- // Sidebar content width is 190pt (218 − edge insets); card must stay within that band.
|
|
|
|
|
|
|
+ // Sidebar content width is the fixed sidebar width minus horizontal edge insets; card must stay within that band.
|
|
|
let cardWidth: CGFloat = 186
|
|
let cardWidth: CGFloat = 186
|
|
|
let innerContentWidth = cardWidth - 28
|
|
let innerContentWidth = cardWidth - 28
|
|
|
upgradeDescription.preferredMaxLayoutWidth = innerContentWidth
|
|
upgradeDescription.preferredMaxLayoutWidth = innerContentWidth
|