|
@@ -52,6 +52,7 @@ class KMRegisterSuccessView: KMBaseXibView {
|
|
|
self.doneButton.border(.white,0, 20)
|
|
|
self.doneButton.backgroundColor(NSColor(hex: "#FF852E"))
|
|
|
self.doneButton.contentTintColor = NSColor(hex: "#FFFFFF")
|
|
|
+ self.doneButton.font = NSFont.SFProTextSemibold(16)
|
|
|
|
|
|
self.textView.delegate = self
|
|
|
self.textView.isEditable = false
|
|
@@ -69,7 +70,17 @@ class KMRegisterSuccessView: KMBaseXibView {
|
|
|
|
|
|
override func reloadData() {
|
|
|
super.reloadData()
|
|
|
-
|
|
|
+ if KMLightMemberManager.manager.purchaseState == .subscription {
|
|
|
+ self.doneButton.isEnabled = false
|
|
|
+ self.doneButton.title = NSLocalizedString("Already Subscribed", comment: "")
|
|
|
+ self.doneButton.backgroundColor(NSColor(hex: "#FFD09E"))
|
|
|
+ self.doneButton.contentTintColor = NSColor(hex: "#F7F8FA")
|
|
|
+ } else {
|
|
|
+ self.doneButton.isEnabled = true
|
|
|
+ self.doneButton.title = NSLocalizedString("Subscribe", comment: "")
|
|
|
+ self.doneButton.backgroundColor(NSColor(hex: "#FF852E"))
|
|
|
+ self.doneButton.contentTintColor = NSColor(hex: "#FFFFFF")
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
override func updateLanguage() {
|
|
@@ -78,7 +89,7 @@ class KMRegisterSuccessView: KMBaseXibView {
|
|
|
self.label2.stringValue = NSLocalizedString("Unlimited Conversion", comment: "")
|
|
|
self.label3.stringValue = NSLocalizedString("Save without Watermark", comment: "")
|
|
|
|
|
|
- self.doneButton.title = NSLocalizedString("Subscribe", comment: "")
|
|
|
+// self.doneButton.title = NSLocalizedString("Subscribe", comment: "")
|
|
|
|
|
|
let string1 = NSLocalizedString("Welcome to Join PDF Master!", comment: "")
|
|
|
let ParagraphStyle1 = NSMutableParagraphStyle()
|