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

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 недель назад: 3
Родитель
С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 {
161 161
         crownIcon.contentTintColor = NSColor(srgbRed: 254 / 255, green: 214 / 255, blue: 92 / 255, alpha: 1)
162 162
 
163 163
         let title = NSTextField(labelWithString: "Upgrade to Pro")
164
-        title.font = .systemFont(ofSize: 52, weight: .bold)
164
+        title.font = .systemFont(ofSize: 40, weight: .semibold)
165 165
         title.textColor = Theme.primaryText
166 166
         title.alignment = .center
167 167
 
168 168
         let subtitle = NSTextField(labelWithString: "Unlock unlimited access to premium tools and boost your productivity.")
169
-        subtitle.font = .systemFont(ofSize: 15, weight: .medium)
169
+        subtitle.font = .systemFont(ofSize: 14, weight: .regular)
170 170
         subtitle.textColor = Theme.secondaryText
171 171
         subtitle.alignment = .center
172 172
 
@@ -234,12 +234,12 @@ private final class PremiumPlansViewController: NSViewController {
234 234
         ])
235 235
 
236 236
         let titleLabel = NSTextField(labelWithString: plan.title)
237
-        titleLabel.font = .systemFont(ofSize: 44, weight: .bold)
237
+        titleLabel.font = .systemFont(ofSize: 20, weight: .semibold)
238 238
         titleLabel.textColor = Theme.primaryText
239 239
         titleLabel.alignment = .center
240 240
 
241 241
         let subtitleLabel = NSTextField(labelWithString: plan.subtitle)
242
-        subtitleLabel.font = .systemFont(ofSize: 13, weight: .medium)
242
+        subtitleLabel.font = .systemFont(ofSize: 12, weight: .regular)
243 243
         subtitleLabel.textColor = Theme.secondaryText
244 244
         subtitleLabel.alignment = .center
245 245
 
@@ -247,11 +247,11 @@ private final class PremiumPlansViewController: NSViewController {
247 247
         billingPill.isHidden = plan.billedPill.isEmpty
248 248
 
249 249
         let priceLabel = NSTextField(labelWithString: plan.price)
250
-        priceLabel.font = .systemFont(ofSize: 40, weight: .bold)
250
+        priceLabel.font = .systemFont(ofSize: 18, weight: .semibold)
251 251
         priceLabel.textColor = Theme.primaryText
252 252
 
253 253
         let periodLabel = NSTextField(labelWithString: plan.period)
254
-        periodLabel.font = .systemFont(ofSize: 30, weight: .semibold)
254
+        periodLabel.font = .systemFont(ofSize: 13, weight: .medium)
255 255
         periodLabel.textColor = Theme.secondaryText
256 256
 
257 257
         let priceRow = NSStackView(views: [priceLabel, periodLabel])
@@ -281,7 +281,7 @@ private final class PremiumPlansViewController: NSViewController {
281 281
         selectButton.identifier = NSUserInterfaceItemIdentifier(plan.id)
282 282
         selectButton.isBordered = false
283 283
         selectButton.bezelStyle = .rounded
284
-        selectButton.font = .systemFont(ofSize: 15, weight: .bold)
284
+        selectButton.font = .systemFont(ofSize: 14, weight: .semibold)
285 285
         selectButton.contentTintColor = plan.highlight ? .white : Theme.primaryText
286 286
         selectButton.wantsLayer = true
287 287
         selectButton.layer?.cornerRadius = 12
@@ -324,7 +324,7 @@ private final class PremiumPlansViewController: NSViewController {
324 324
         icon.widthAnchor.constraint(equalToConstant: 14).isActive = true
325 325
 
326 326
         let label = NSTextField(labelWithString: text)
327
-        label.font = .systemFont(ofSize: 16, weight: .semibold)
327
+        label.font = .systemFont(ofSize: 14, weight: .medium)
328 328
         label.textColor = Theme.primaryText
329 329
 
330 330
         let row = NSStackView(views: [icon, label])