Browse Source

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 month ago
parent
commit
0ba3519ac0
2 changed files with 3 additions and 3 deletions
  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)