소스 검색

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 1 개월 전
부모
커밋
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 @@
 import Cocoa
 
 enum AppTheme {
-    static let windowWidth: CGFloat = 680
+    static let windowWidth: CGFloat = 700
     static let windowHeight: CGFloat = 720
     static let windowMinWidth: CGFloat = 600
     static let windowMinHeight: CGFloat = windowHeight

+ 2 - 2
smart_printer/PaywallView.swift

@@ -358,14 +358,14 @@ private final class PaywallTrustItemView: NSView {
         icon.contentTintColor = AppTheme.navy
 
         let titleLabel = NSTextField(labelWithString: title)
-        titleLabel.font = AppTheme.semiboldFont(size: 13)
+        titleLabel.font = AppTheme.semiboldFont(size: 11)
         titleLabel.textColor = AppTheme.navy
         titleLabel.lineBreakMode = .byTruncatingTail
         titleLabel.setContentCompressionResistancePriority(.defaultLow, for: .horizontal)
         titleLabel.translatesAutoresizingMaskIntoConstraints = false
 
         let subtitleLabel = NSTextField(labelWithString: subtitle)
-        subtitleLabel.font = AppTheme.regularFont(size: 12)
+        subtitleLabel.font = AppTheme.regularFont(size: 9)
         subtitleLabel.textColor = AppTheme.textSecondary
         subtitleLabel.lineBreakMode = .byTruncatingTail
         subtitleLabel.setContentCompressionResistancePriority(.defaultLow, for: .horizontal)