|
|
@@ -124,6 +124,11 @@ private final class PremiumPlansViewController: NSViewController {
|
|
124
|
124
|
static let iconTint = NSColor(srgbRed: 47 / 255, green: 136 / 255, blue: 255 / 255, alpha: 1)
|
|
125
|
125
|
}
|
|
126
|
126
|
|
|
|
127
|
+ private enum FeatureListMetrics {
|
|
|
128
|
+ static let spacing = CGFloat(10)
|
|
|
129
|
+ static let edgeInsets = NSEdgeInsets(top: 21, left: 37, bottom: 21, right: 0)
|
|
|
130
|
+ }
|
|
|
131
|
+
|
|
127
|
132
|
private let plans: [Plan] = [
|
|
128
|
133
|
Plan(
|
|
129
|
134
|
id: "weekly",
|
|
|
@@ -335,9 +340,9 @@ private final class PremiumPlansViewController: NSViewController {
|
|
335
|
340
|
|
|
336
|
341
|
let featuresStack = NSStackView(views: plan.features.map(makeFeatureRow(_:)))
|
|
337
|
342
|
featuresStack.orientation = .vertical
|
|
338
|
|
- featuresStack.spacing = 9
|
|
|
343
|
+ featuresStack.spacing = FeatureListMetrics.spacing
|
|
339
|
344
|
featuresStack.alignment = .leading
|
|
340
|
|
- featuresStack.edgeInsets = NSEdgeInsets(top: 20, left: 22, bottom: 0, right: 0)
|
|
|
345
|
+ featuresStack.edgeInsets = FeatureListMetrics.edgeInsets
|
|
341
|
346
|
|
|
342
|
347
|
let selectButton = NSButton(title: "Get \(plan.title)", target: self, action: #selector(didTapSelectPlan))
|
|
343
|
348
|
selectButton.identifier = NSUserInterfaceItemIdentifier(plan.id)
|
|
|
@@ -407,7 +412,7 @@ private final class PremiumPlansViewController: NSViewController {
|
|
407
|
412
|
|
|
408
|
413
|
let row = NSStackView(views: [icon, label])
|
|
409
|
414
|
row.orientation = .horizontal
|
|
410
|
|
- row.spacing = 8
|
|
|
415
|
+ row.spacing = FeatureListMetrics.spacing
|
|
411
|
416
|
row.alignment = .centerY
|
|
412
|
417
|
row.distribution = .fill
|
|
413
|
418
|
return row
|