|
@@ -352,6 +352,31 @@ class KMPurchaseEmbeddedWindowController: NSWindowController {
|
|
|
|
|
|
addbox.fillColor = NSColor(named: "0E1114 1") ?? .white
|
|
|
removebox.fillColor = NSColor(named: "0E1114 1") ?? .white
|
|
|
+
|
|
|
+ firmLabel.isEditable = false
|
|
|
+ firmLabel.isSelectable = true
|
|
|
+ firmLabel.allowsEditingTextAttributes = true
|
|
|
+ firmLabel.textColor = NSColor.black
|
|
|
+ firmLabel.font = NSFont.SFProTextRegularFont(14.0)
|
|
|
+ let firmString = NSLocalizedString("If you need to manage seats in PDF Reader Pro, please purchase the %@.", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
+ let enterpriseStr = NSLocalizedString("enterprise version", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
+ let fireFullString = String(format: firmString, enterpriseStr)
|
|
|
+ let firmLinkColor = NSColor(named: "4982E6") ?? NSColor.blue
|
|
|
+ let attri = NSMutableAttributedString(string: fireFullString, attributes: [.foregroundColor : firmLinkColor, .font : NSFont.SFProTextRegularFont(14.0)])
|
|
|
+ // 定义链接的范围
|
|
|
+ let enterpriseRange = (fireFullString as NSString).range(of: enterpriseStr)
|
|
|
+ let firmFont = NSFont.SFProTextRegularFont(14.0) // 与普通文本相同的字体
|
|
|
+ attri.addAttributes([
|
|
|
+ .foregroundColor: NSColor(named: "0E1114") ?? NSColor.black as Any,
|
|
|
+ .font: firmFont
|
|
|
+ ], range: (fireFullString as NSString).range(of: enterpriseStr))
|
|
|
+ attri.addAttributes([
|
|
|
+ .foregroundColor: firmLinkColor,
|
|
|
+ .link: NSLocalizedString("https://www.pdfreaderpro.com/store/lynxpdfeditor", comment: ""),
|
|
|
+ .font: firmFont
|
|
|
+ ], range: enterpriseRange)
|
|
|
+ firmLabel.attributedStringValue = attri
|
|
|
+ firmLabel.isHidden = true
|
|
|
|
|
|
textbox.fillColor = NSColor(named: "0E1114 2") ?? .white
|
|
|
yourOrderLabel.stringValue = NSLocalizedString("Your Order", comment: "")
|
|
@@ -1101,6 +1126,9 @@ class KMPurchaseEmbeddedWindowController: NSWindowController {
|
|
|
wechatPayButton.isHidden = false
|
|
|
}
|
|
|
amountTextField1.stringValue = String(pdfCount)
|
|
|
+
|
|
|
+ let viewHidden = pdfCount <= 1
|
|
|
+ firmLabel.isHidden = viewHidden
|
|
|
}
|
|
|
|
|
|
// 价格刷新
|