소스 검색

Fix truncated paywall trust text and widen app window slightly.

Reduce trust footer font sizes so subtitles display fully, and increase default window width to give the paywall more room.

Co-authored-by: Cursor <cursoragent@cursor.com>
AhtashamShahzad1 7 시간 전
부모
커밋
0ba3519ac0
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      smart_printer/AppTheme.swift
  2. 2 2
      smart_printer/PaywallView.swift

+ 1 - 1
smart_printer/AppTheme.swift

@@ -1,7 +1,7 @@
1 1
 import Cocoa
2 2
 
3 3
 enum AppTheme {
4
-    static let windowWidth: CGFloat = 680
4
+    static let windowWidth: CGFloat = 700
5 5
     static let windowHeight: CGFloat = 720
6 6
     static let windowMinWidth: CGFloat = 600
7 7
     static let windowMinHeight: CGFloat = windowHeight

+ 2 - 2
smart_printer/PaywallView.swift

@@ -358,14 +358,14 @@ private final class PaywallTrustItemView: NSView {
358 358
         icon.contentTintColor = AppTheme.navy
359 359
 
360 360
         let titleLabel = NSTextField(labelWithString: title)
361
-        titleLabel.font = AppTheme.semiboldFont(size: 13)
361
+        titleLabel.font = AppTheme.semiboldFont(size: 11)
362 362
         titleLabel.textColor = AppTheme.navy
363 363
         titleLabel.lineBreakMode = .byTruncatingTail
364 364
         titleLabel.setContentCompressionResistancePriority(.defaultLow, for: .horizontal)
365 365
         titleLabel.translatesAutoresizingMaskIntoConstraints = false
366 366
 
367 367
         let subtitleLabel = NSTextField(labelWithString: subtitle)
368
-        subtitleLabel.font = AppTheme.regularFont(size: 12)
368
+        subtitleLabel.font = AppTheme.regularFont(size: 9)
369 369
         subtitleLabel.textColor = AppTheme.textSecondary
370 370
         subtitleLabel.lineBreakMode = .byTruncatingTail
371 371
         subtitleLabel.setContentCompressionResistancePriority(.defaultLow, for: .horizontal)