Просмотр исходного кода

Adjust premium plans typography to standard app sizing.

Reduce oversized bold text across the header and plan cards to improve visual balance and match typical app font proportions.

Co-authored-by: Cursor <cursoragent@cursor.com>
AhtashamShahzad1 2 месяцев назад
Родитель
Сommit
95b46c3cd4
1 измененных файлов с 8 добавлено и 8 удалено
  1. 8 8
      App for Indeed/Controllers/PremiumPlansWindowController.swift

+ 8 - 8
App for Indeed/Controllers/PremiumPlansWindowController.swift

@@ -161,12 +161,12 @@ private final class PremiumPlansViewController: NSViewController {
         crownIcon.contentTintColor = NSColor(srgbRed: 254 / 255, green: 214 / 255, blue: 92 / 255, alpha: 1)
         crownIcon.contentTintColor = NSColor(srgbRed: 254 / 255, green: 214 / 255, blue: 92 / 255, alpha: 1)
 
 
         let title = NSTextField(labelWithString: "Upgrade to Pro")
         let title = NSTextField(labelWithString: "Upgrade to Pro")
-        title.font = .systemFont(ofSize: 52, weight: .bold)
+        title.font = .systemFont(ofSize: 40, weight: .semibold)
         title.textColor = Theme.primaryText
         title.textColor = Theme.primaryText
         title.alignment = .center
         title.alignment = .center
 
 
         let subtitle = NSTextField(labelWithString: "Unlock unlimited access to premium tools and boost your productivity.")
         let subtitle = NSTextField(labelWithString: "Unlock unlimited access to premium tools and boost your productivity.")
-        subtitle.font = .systemFont(ofSize: 15, weight: .medium)
+        subtitle.font = .systemFont(ofSize: 14, weight: .regular)
         subtitle.textColor = Theme.secondaryText
         subtitle.textColor = Theme.secondaryText
         subtitle.alignment = .center
         subtitle.alignment = .center
 
 
@@ -234,12 +234,12 @@ private final class PremiumPlansViewController: NSViewController {
         ])
         ])
 
 
         let titleLabel = NSTextField(labelWithString: plan.title)
         let titleLabel = NSTextField(labelWithString: plan.title)
-        titleLabel.font = .systemFont(ofSize: 44, weight: .bold)
+        titleLabel.font = .systemFont(ofSize: 20, weight: .semibold)
         titleLabel.textColor = Theme.primaryText
         titleLabel.textColor = Theme.primaryText
         titleLabel.alignment = .center
         titleLabel.alignment = .center
 
 
         let subtitleLabel = NSTextField(labelWithString: plan.subtitle)
         let subtitleLabel = NSTextField(labelWithString: plan.subtitle)
-        subtitleLabel.font = .systemFont(ofSize: 13, weight: .medium)
+        subtitleLabel.font = .systemFont(ofSize: 12, weight: .regular)
         subtitleLabel.textColor = Theme.secondaryText
         subtitleLabel.textColor = Theme.secondaryText
         subtitleLabel.alignment = .center
         subtitleLabel.alignment = .center
 
 
@@ -247,11 +247,11 @@ private final class PremiumPlansViewController: NSViewController {
         billingPill.isHidden = plan.billedPill.isEmpty
         billingPill.isHidden = plan.billedPill.isEmpty
 
 
         let priceLabel = NSTextField(labelWithString: plan.price)
         let priceLabel = NSTextField(labelWithString: plan.price)
-        priceLabel.font = .systemFont(ofSize: 40, weight: .bold)
+        priceLabel.font = .systemFont(ofSize: 18, weight: .semibold)
         priceLabel.textColor = Theme.primaryText
         priceLabel.textColor = Theme.primaryText
 
 
         let periodLabel = NSTextField(labelWithString: plan.period)
         let periodLabel = NSTextField(labelWithString: plan.period)
-        periodLabel.font = .systemFont(ofSize: 30, weight: .semibold)
+        periodLabel.font = .systemFont(ofSize: 13, weight: .medium)
         periodLabel.textColor = Theme.secondaryText
         periodLabel.textColor = Theme.secondaryText
 
 
         let priceRow = NSStackView(views: [priceLabel, periodLabel])
         let priceRow = NSStackView(views: [priceLabel, periodLabel])
@@ -281,7 +281,7 @@ private final class PremiumPlansViewController: NSViewController {
         selectButton.identifier = NSUserInterfaceItemIdentifier(plan.id)
         selectButton.identifier = NSUserInterfaceItemIdentifier(plan.id)
         selectButton.isBordered = false
         selectButton.isBordered = false
         selectButton.bezelStyle = .rounded
         selectButton.bezelStyle = .rounded
-        selectButton.font = .systemFont(ofSize: 15, weight: .bold)
+        selectButton.font = .systemFont(ofSize: 14, weight: .semibold)
         selectButton.contentTintColor = plan.highlight ? .white : Theme.primaryText
         selectButton.contentTintColor = plan.highlight ? .white : Theme.primaryText
         selectButton.wantsLayer = true
         selectButton.wantsLayer = true
         selectButton.layer?.cornerRadius = 12
         selectButton.layer?.cornerRadius = 12
@@ -324,7 +324,7 @@ private final class PremiumPlansViewController: NSViewController {
         icon.widthAnchor.constraint(equalToConstant: 14).isActive = true
         icon.widthAnchor.constraint(equalToConstant: 14).isActive = true
 
 
         let label = NSTextField(labelWithString: text)
         let label = NSTextField(labelWithString: text)
-        label.font = .systemFont(ofSize: 16, weight: .semibold)
+        label.font = .systemFont(ofSize: 14, weight: .medium)
         label.textColor = Theme.primaryText
         label.textColor = Theme.primaryText
 
 
         let row = NSStackView(views: [icon, label])
         let row = NSStackView(views: [icon, label])