Răsfoiți Sursa

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 lună în urmă
părinte
comite
0ba3519ac0
2 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  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
 import Cocoa
 
 
 enum AppTheme {
 enum AppTheme {
-    static let windowWidth: CGFloat = 680
+    static let windowWidth: CGFloat = 700
     static let windowHeight: CGFloat = 720
     static let windowHeight: CGFloat = 720
     static let windowMinWidth: CGFloat = 600
     static let windowMinWidth: CGFloat = 600
     static let windowMinHeight: CGFloat = windowHeight
     static let windowMinHeight: CGFloat = windowHeight

+ 2 - 2
smart_printer/PaywallView.swift

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