|
@@ -33,24 +33,24 @@ class KMConvertCollectionViewHeader: KMBaseXibView{
|
|
|
override func awakeFromNib() {
|
|
|
super.awakeFromNib()
|
|
|
|
|
|
-// containerView.wantsLayer = true
|
|
|
+ containerView.wantsLayer = true
|
|
|
// containerView.layer?.cornerRadius = 12
|
|
|
- // if IAPProductsManager.defaultManager().isAvailableAdvancedPDFToOffice {
|
|
|
- // containerView.isHidden = true
|
|
|
- // }
|
|
|
- //购买状态变化通知
|
|
|
-// NotificationCenter.default.addObserver(self, selector: #selector(IAPProductRestoreFinishedNotification(notification:)), name: NSNotification.Name(rawValue: KMIAPProductPurchasedNotification), object: nil)
|
|
|
-// NotificationCenter.default.addObserver(self, selector: #selector(IAPProductRestoreFinishedNotification(notification:)), name: NSNotification.Name(rawValue: KMIAPProductRestoreFinishedNotification), object: nil)
|
|
|
+// if IAPProductsManager.defaultManager().isAvailableAdvancedPDFToOffice {
|
|
|
+// containerView.isHidden = true
|
|
|
+// }
|
|
|
+// 购买状态变化通知
|
|
|
+ NotificationCenter.default.addObserver(self, selector: #selector(IAPProductRestoreFinishedNotification(notification:)), name: NSNotification.Name(rawValue: "KMIAPProductPurchasedNotification"), object: nil)
|
|
|
+ NotificationCenter.default.addObserver(self, selector: #selector(IAPProductRestoreFinishedNotification(notification:)), name: NSNotification.Name(rawValue: "KMIAPProductRestoreFinishedNotification"), object: nil)
|
|
|
}
|
|
|
|
|
|
override func setup() {
|
|
|
-// indicateLabel.font = NSFont.boldSystemFont(ofSize: 14)
|
|
|
-// indicateLabel.textColor = KMAppearance.Layout.h0Color()
|
|
|
-// indicateLabel.stringValue = NSLocalizedString("Convert", comment: "")
|
|
|
-// infoLabel.font = NSFont.boldSystemFont(ofSize: 11)
|
|
|
-// infoLabel.textColor = KMAppearance.Interactive.m0Color()
|
|
|
-// infoLabel.stringValue = NSLocalizedString("Upgrade to Pro", comment: "")
|
|
|
-// infoLabel.toolTip = NSLocalizedString("Upgrade to Pro", comment: "")
|
|
|
+ indicateLabel.font = NSFont.boldSystemFont(ofSize: 14)
|
|
|
+ indicateLabel.textColor = KMAppearance.Layout.h0Color()
|
|
|
+ indicateLabel.stringValue = NSLocalizedString("Convert", comment: "")
|
|
|
+ infoLabel.font = NSFont.boldSystemFont(ofSize: 11)
|
|
|
+ infoLabel.textColor = KMAppearance.Interactive.m0Color()
|
|
|
+ infoLabel.stringValue = NSLocalizedString("Upgrade to Pro", comment: "")
|
|
|
+ infoLabel.toolTip = NSLocalizedString("Upgrade to Pro", comment: "")
|
|
|
}
|
|
|
|
|
|
override func mouseUp(with event: NSEvent) {
|