|
@@ -139,11 +139,12 @@ final class DashboardView: NSView, NSTextFieldDelegate {
|
|
139
|
layer?.backgroundColor = Theme.pageBackground.cgColor
|
139
|
layer?.backgroundColor = Theme.pageBackground.cgColor
|
|
140
|
|
140
|
|
|
141
|
contentStack.orientation = .horizontal
|
141
|
contentStack.orientation = .horizontal
|
|
142
|
- contentStack.spacing = 20
|
|
|
|
|
|
142
|
+ contentStack.spacing = 10
|
|
143
|
contentStack.distribution = .fill
|
143
|
contentStack.distribution = .fill
|
|
144
|
contentStack.translatesAutoresizingMaskIntoConstraints = false
|
144
|
contentStack.translatesAutoresizingMaskIntoConstraints = false
|
|
145
|
contentStack.alignment = .height
|
145
|
contentStack.alignment = .height
|
|
146
|
- contentStack.edgeInsets = NSEdgeInsets(top: 24, left: 24, bottom: 24, right: 24)
|
|
|
|
|
|
146
|
+ // Tighter chrome insets so panels sit closer to the window edges (especially leading / top under the title bar).
|
|
|
|
147
|
+ contentStack.edgeInsets = NSEdgeInsets(top: 10, left: 12, bottom: 20, right: 20)
|
|
147
|
|
148
|
|
|
148
|
chromeContainer.translatesAutoresizingMaskIntoConstraints = false
|
149
|
chromeContainer.translatesAutoresizingMaskIntoConstraints = false
|
|
149
|
chromeContainer.wantsLayer = true
|
150
|
chromeContainer.wantsLayer = true
|
|
@@ -159,7 +160,7 @@ final class DashboardView: NSView, NSTextFieldDelegate {
|
|
159
|
sidebar.wantsLayer = true
|
160
|
sidebar.wantsLayer = true
|
|
160
|
sidebar.layer?.backgroundColor = Theme.sidebarBackground.cgColor
|
161
|
sidebar.layer?.backgroundColor = Theme.sidebarBackground.cgColor
|
|
161
|
sidebar.layer?.cornerRadius = 16
|
162
|
sidebar.layer?.cornerRadius = 16
|
|
162
|
- sidebar.edgeInsets = NSEdgeInsets(top: 18, left: 14, bottom: 18, right: 14)
|
|
|
|
|
|
163
|
+ sidebar.edgeInsets = NSEdgeInsets(top: 16, left: 12, bottom: 16, right: 12)
|
|
163
|
sidebar.translatesAutoresizingMaskIntoConstraints = false
|
164
|
sidebar.translatesAutoresizingMaskIntoConstraints = false
|
|
164
|
|
165
|
|
|
165
|
mainHost.translatesAutoresizingMaskIntoConstraints = false
|
166
|
mainHost.translatesAutoresizingMaskIntoConstraints = false
|
|
@@ -193,7 +194,7 @@ final class DashboardView: NSView, NSTextFieldDelegate {
|
|
193
|
|
194
|
|
|
194
|
let topInset = NSView()
|
195
|
let topInset = NSView()
|
|
195
|
topInset.translatesAutoresizingMaskIntoConstraints = false
|
196
|
topInset.translatesAutoresizingMaskIntoConstraints = false
|
|
196
|
- topInset.heightAnchor.constraint(equalToConstant: 32).isActive = true
|
|
|
|
|
|
197
|
+ topInset.heightAnchor.constraint(equalToConstant: 18).isActive = true
|
|
197
|
|
198
|
|
|
198
|
configureSearchBar()
|
199
|
configureSearchBar()
|
|
199
|
|
200
|
|
|
@@ -278,8 +279,8 @@ final class DashboardView: NSView, NSTextFieldDelegate {
|
|
278
|
jobListingsContainer.leadingAnchor.constraint(equalTo: jobListingsScrollView.contentView.leadingAnchor),
|
279
|
jobListingsContainer.leadingAnchor.constraint(equalTo: jobListingsScrollView.contentView.leadingAnchor),
|
|
279
|
jobListingsContainer.widthAnchor.constraint(equalTo: jobListingsScrollView.contentView.widthAnchor),
|
280
|
jobListingsContainer.widthAnchor.constraint(equalTo: jobListingsScrollView.contentView.widthAnchor),
|
|
280
|
|
281
|
|
|
281
|
- greetingLabel.leadingAnchor.constraint(equalTo: mainOverlay.leadingAnchor, constant: 24),
|
|
|
|
282
|
- greetingLabel.trailingAnchor.constraint(equalTo: mainOverlay.trailingAnchor, constant: -24),
|
|
|
|
|
|
282
|
+ greetingLabel.leadingAnchor.constraint(equalTo: mainOverlay.leadingAnchor, constant: 16),
|
|
|
|
283
|
+ greetingLabel.trailingAnchor.constraint(equalTo: mainOverlay.trailingAnchor, constant: -16),
|
|
283
|
subtitleLabel.leadingAnchor.constraint(equalTo: greetingLabel.leadingAnchor),
|
284
|
subtitleLabel.leadingAnchor.constraint(equalTo: greetingLabel.leadingAnchor),
|
|
284
|
subtitleLabel.trailingAnchor.constraint(equalTo: greetingLabel.trailingAnchor)
|
285
|
subtitleLabel.trailingAnchor.constraint(equalTo: greetingLabel.trailingAnchor)
|
|
285
|
])
|
286
|
])
|
|
@@ -1132,7 +1133,7 @@ final class DashboardView: NSView, NSTextFieldDelegate {
|
|
1132
|
upgradeDescription.font = .systemFont(ofSize: 12, weight: .regular)
|
1133
|
upgradeDescription.font = .systemFont(ofSize: 12, weight: .regular)
|
|
1133
|
upgradeDescription.textColor = Theme.secondaryText
|
1134
|
upgradeDescription.textColor = Theme.secondaryText
|
|
1134
|
upgradeDescription.alignment = .center
|
1135
|
upgradeDescription.alignment = .center
|
|
1135
|
- // Sidebar content width is 190pt (218 − edge insets); card must stay within that band.
|
|
|
|
|
|
1136
|
+ // Sidebar content width is the fixed sidebar width minus horizontal edge insets; card must stay within that band.
|
|
1136
|
let cardWidth: CGFloat = 186
|
1137
|
let cardWidth: CGFloat = 186
|
|
1137
|
let innerContentWidth = cardWidth - 28
|
1138
|
let innerContentWidth = cardWidth - 28
|
|
1138
|
upgradeDescription.preferredMaxLayoutWidth = innerContentWidth
|
1139
|
upgradeDescription.preferredMaxLayoutWidth = innerContentWidth
|