|
@@ -29,6 +29,8 @@ class KMFunctionGuideMultiController: NSViewController {
|
|
|
|
|
|
let DigitalSignatureKey = "DigitalSignatureKey"
|
|
|
let ComparePDFsKey = "ComparePDFsKey"
|
|
|
+ let AIInfoKey = "AIInfoKey"
|
|
|
+
|
|
|
var namesArr = Array<Any>()
|
|
|
var currentNameKEY = String()
|
|
|
|
|
@@ -41,11 +43,11 @@ class KMFunctionGuideMultiController: NSViewController {
|
|
|
override func viewDidLoad() {
|
|
|
super.viewDidLoad()
|
|
|
// Do view setup here.
|
|
|
-
|
|
|
- self.namesArr = [["name":"Digital Signature",
|
|
|
- "key":DigitalSignatureKey,
|
|
|
- "imageName":"whatNew_Digital",
|
|
|
- "description":"Digital signature verify the authenticity and integrity of documents, agreements, or contract, ensuring that the signature cannot be tampered with and provides a higher level of security."]]
|
|
|
+ self.namesArr = [["name":"AI Tools",
|
|
|
+ "key":AIInfoKey,
|
|
|
+ "infoTitle":"Experience the Power of PDF AI Tools",
|
|
|
+ "imageName":"whatNew_AIGuide",
|
|
|
+ "description":NSLocalizedString("• AI Summarize with a deep understanding of document", comment: "") + "\n" + NSLocalizedString("• AI Translate your document without leaving a PDF", comment: "") + "\n" + NSLocalizedString("• Check grammar, fix spelling errors to ensure a professional file", comment: "") + "\n" + NSLocalizedString("• Rewrite your PDF to enhance style and polish content", comment: "")]]
|
|
|
let dict = self.namesArr.first as! NSDictionary
|
|
|
self.currentNameKEY = dict["key"] as! String
|
|
|
|
|
@@ -57,13 +59,13 @@ class KMFunctionGuideMultiController: NSViewController {
|
|
|
|
|
|
self.titleInfoView.wantsLayer = true
|
|
|
self.getStartBox.wantsLayer = true
|
|
|
- self.getStartBox.layer?.cornerRadius = 4
|
|
|
+ self.getStartBox.layer?.cornerRadius = CGRectGetHeight(self.getStartBox.frame)/2
|
|
|
self.getStartBox.layer?.masksToBounds = true
|
|
|
|
|
|
self.titleLabel.stringValue = NSLocalizedString("What‘s New", comment: "")
|
|
|
- self.getStartLabel.stringValue = NSLocalizedString("Got it", comment: "")
|
|
|
- self.learnButton.title = NSLocalizedString("Learn More", comment: "")
|
|
|
- self.learnButton.toolTip = NSLocalizedString("Learn More", comment: "")
|
|
|
+ self.getStartLabel.stringValue = NSLocalizedString("Buy Now", comment: "")
|
|
|
+ self.learnButton.title = NSLocalizedString("Feedback", comment: "")
|
|
|
+ self.learnButton.toolTip = NSLocalizedString("Feedback", comment: "")
|
|
|
|
|
|
self.titleLabel.font = NSFont.SFProTextHeavyFont(20)
|
|
|
self.getStartLabel.font = NSFont.SFProTextSemiboldFont(14)
|
|
@@ -71,18 +73,18 @@ class KMFunctionGuideMultiController: NSViewController {
|
|
|
self.desLabel.font = NSFont.SFProTextSemiboldFont(14)
|
|
|
self.desSubLabel.font = NSFont.SFProTextRegularFont(14)
|
|
|
|
|
|
- self.getStartButton.mouseMoveCallback = { [weak self] mouseEntered in
|
|
|
- if KMAppearance.isDarkMode() {
|
|
|
+ self.getStartButton.wantsLayer = true
|
|
|
+ self.getStartButton.mouseMoveCallback = { [weak self] mouseEntered in if KMAppearance.isDarkMode() {
|
|
|
if mouseEntered {
|
|
|
- self?.getStartBox.fillColor = NSColor(red: 23/255, green: 85/255, blue: 178/255, alpha: 1)
|
|
|
+ self?.getStartButton.layer?.backgroundColor = NSColor.white.withAlphaComponent(0.2).cgColor
|
|
|
} else {
|
|
|
- self?.getStartBox.fillColor = KMAppearance.KMColor_Interactive_A0()
|
|
|
+ self?.getStartButton.layer?.backgroundColor = NSColor.clear.cgColor
|
|
|
}
|
|
|
} else {
|
|
|
if mouseEntered {
|
|
|
- self?.getStartBox.fillColor = NSColor(red: 56/255, green: 100/255, blue: 176/255, alpha: 1)
|
|
|
+ self?.getStartButton.layer?.backgroundColor = NSColor.white.withAlphaComponent(0.2).cgColor
|
|
|
} else {
|
|
|
- self?.getStartBox.fillColor = NSColor(red: 73/255, green: 130/255, blue: 230/255, alpha: 1)
|
|
|
+ self?.getStartButton.layer?.backgroundColor = NSColor.clear.cgColor
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -156,7 +158,7 @@ class KMFunctionGuideMultiController: NSViewController {
|
|
|
for i in 0...self.namesArr.count - 1 {
|
|
|
let dict = self.namesArr[i] as! NSDictionary
|
|
|
if dict["key"] as! String == self.currentNameKEY {
|
|
|
- self.desLabel.stringValue = NSLocalizedString(dict["name"] as! String, comment: "")
|
|
|
+ self.desLabel.stringValue = NSLocalizedString(dict["infoTitle"] as! String, comment: "")
|
|
|
self.desSubLabel.stringValue = NSLocalizedString(dict["description"] as! String, comment: "")
|
|
|
self.iconImage.image = NSImage(named: dict["imageName"] as! String)
|
|
|
}
|
|
@@ -177,15 +179,15 @@ class KMFunctionGuideMultiController: NSViewController {
|
|
|
self.learnButton.setTitleColor(KMAppearance.KMColor_Interactive_M0())
|
|
|
|
|
|
if KMAppearance.isDarkMode() {
|
|
|
- self.titleInfoView.layer?.backgroundColor = NSColor(red: 40/255.0, green: 40/255, blue: 40/255, alpha: 1).cgColor
|
|
|
- self.descriptionBGView.layer?.backgroundColor = NSColor(red: 14/255.0, green: 17/255, blue: 20/255, alpha: 1).cgColor
|
|
|
+ self.titleInfoView.layer?.backgroundColor = NSColor(red: 14/255.0, green: 17/255, blue: 20/255, alpha: 1).cgColor
|
|
|
+ self.descriptionBGView.layer?.backgroundColor = NSColor(red: 40/255.0, green: 40/255, blue: 40/255, alpha: 1).cgColor
|
|
|
self.titleLabel.textColor = NSColor.white
|
|
|
self.desLabel.textColor = NSColor.white
|
|
|
self.desSubLabel.textColor = NSColor(red: 200/255, green: 201/255, blue: 204/255, alpha: 1)
|
|
|
self.getStartBox.fillColor = NSColor(red: 34/255, green: 122/255, blue: 255/255, alpha: 1)
|
|
|
} else {
|
|
|
- self.titleInfoView.layer?.backgroundColor = NSColor.white.cgColor
|
|
|
- self.descriptionBGView.layer?.backgroundColor = NSColor(red: 235/255.0, green: 236/255, blue: 240/255, alpha: 1).cgColor
|
|
|
+ self.titleInfoView.layer?.backgroundColor = NSColor(red: 249/255.0, green: 249/255, blue: 252/255, alpha: 1).cgColor
|
|
|
+ self.descriptionBGView.layer?.backgroundColor = NSColor.white.cgColor
|
|
|
self.titleLabel.textColor = NSColor(red: 0, green: 33/255, blue: 67/255, alpha: 1)
|
|
|
self.desLabel.textColor = NSColor(red: 14/255, green: 17/255, blue: 20/255, alpha: 1)
|
|
|
self.desSubLabel.textColor = NSColor(red: 14/255, green: 17/255, blue: 20/255, alpha: 1)
|
|
@@ -209,13 +211,8 @@ class KMFunctionGuideMultiController: NSViewController {
|
|
|
}
|
|
|
|
|
|
@IBAction func learnMoreAction(_ sender: Any) {
|
|
|
-#if VERSION_DMG
|
|
|
- var url = URL(string:"https://www.pdfreaderpro.com/blog/digital-signature-update-mac-and-windows?utm_source=app_dmg&utm_medium=whatsnew_digitalsign_blog")!
|
|
|
- NSWorkspace.shared.open(url)
|
|
|
-#else
|
|
|
- var url = URL(string:"https://www.pdfreaderpro.com/blog/digital-signature-update-mac-and-windows?utm_source=app_mac&utm_medium=whatsnew_digitalsign_blog")!
|
|
|
+ let url = URL(string:NSLocalizedString("https://forms.gle/crjCAW4cnF7eq1vQ6", comment: ""))!
|
|
|
NSWorkspace.shared.open(url)
|
|
|
-#endif
|
|
|
}
|
|
|
|
|
|
@IBAction func previousAction(_ sender: Any) {
|