Browse Source

【综合】代码兼容问题修复

tangchao 1 year ago
parent
commit
d0c3479218

+ 1 - 1
PDF Office/PDF Master/Class/GuideInfo/Controllers/FunctionGuide/KMConvertGuideView.swift

@@ -118,7 +118,7 @@ class KMConvertGuideView: NSView, NibLoadable {
         self.shadowView.layer?.shadowRadius = 3.0
         let shadowPath = NSBezierPath(rect: self.shadowView.bounds)
         if #available(macOS 14.0, *) {
-            self.shadowView.layer?.shadowPath = shadowPath.cgPath
+            self.shadowView.layer?.shadowPath = shadowPath.kmCGPath()
         }
         
         DistributedNotificationCenter.default().addObserver(self, selector: #selector(themeChange), name: NSNotification.Name(rawValue: "AppleInterfaceThemeChangedNotification"), object: nil)

+ 1 - 1
PDF Office/PDF Master/Class/GuideInfo/Controllers/FunctionGuide/KMCustomColorGuideView.swift

@@ -91,7 +91,7 @@ class KMCustomColorGuideView: NSView, NibLoadable {
         self.shadowView.layer?.shadowRadius = 3.0
         let shadowPath = NSBezierPath(rect: self.shadowView.bounds)
         if #available(macOS 14.0, *) {
-            self.shadowView.layer?.shadowPath = shadowPath.cgPath
+            self.shadowView.layer?.shadowPath = shadowPath.kmCGPath()
         }
         
         DistributedNotificationCenter.default().addObserver(self, selector: #selector(themeChange), name: NSNotification.Name(rawValue: "AppleInterfaceThemeChangedNotification"), object: nil)

+ 1 - 1
PDF Office/PDF Master/Class/GuideInfo/Controllers/FunctionGuide/KMOpenFileFunctionView.swift

@@ -120,7 +120,7 @@ class KMOpenFileFunctionView: NSView, NibLoadable {
             self.shadowView.frame = self.tipInfoView.frame
             let shadowPath = NSBezierPath(rect: self.shadowView.bounds)
             if #available(macOS 14.0, *) {
-                self.shadowView.layer?.shadowPath = shadowPath.cgPath
+                self.shadowView.layer?.shadowPath = shadowPath.kmCGPath()
             }
         }
         self.getItBox.fillColor = KMAppearance.KMColor_Interactive_A0()

+ 1 - 1
PDF Office/PDF Master/Class/GuideInfo/Controllers/OpenFileGuide/KMOpenFileGuidePanel.swift

@@ -105,7 +105,7 @@ class KMOpenFileGuidePanel: NSView, NibLoadable {
         self.shadowView.layer?.shadowRadius = 3.0
         let shadowPath = NSBezierPath(rect: self.shadowView.bounds)
         if #available(macOS 14.0, *) {
-            self.shadowView.layer?.shadowPath = shadowPath.cgPath
+            self.shadowView.layer?.shadowPath = shadowPath.kmCGPath()
         }
     }
     

+ 1 - 1
PDF Office/PDF Master/Class/GuideInfo/Controllers/OpenFileGuide/KMOpenFileGuideProperty.swift

@@ -129,7 +129,7 @@ class KMOpenFileGuideProperty: NSView, NibLoadable {
         self.shadowView.layer?.shadowRadius = 3.0
         let shadowPath = NSBezierPath(rect: self.shadowView.bounds)
         if #available(macOS 14.0, *) {
-            self.shadowView.layer?.shadowPath = shadowPath.cgPath
+            self.shadowView.layer?.shadowPath = shadowPath.kmCGPath()
         }
         
         DistributedNotificationCenter.default().addObserver(self, selector: #selector(themeChange), name: NSNotification.Name(rawValue: "AppleInterfaceThemeChangedNotification"), object: nil)

+ 1 - 1
PDF Office/PDF Master/Class/GuideInfo/Controllers/OpenFileGuide/KMOpenFileGuideToolbar.swift

@@ -131,7 +131,7 @@ class KMOpenFileGuideToolbar: NSView, NibLoadable {
         self.shadowView.layer?.shadowRadius = 3.0
         let shadowPath = NSBezierPath(rect: self.shadowView.bounds)
         if #available(macOS 14.0, *) {
-            self.shadowView.layer?.shadowPath = shadowPath.cgPath
+            self.shadowView.layer?.shadowPath = shadowPath.kmCGPath()
         }
         
         DistributedNotificationCenter.default().addObserver(self, selector: #selector(themeChange), name: NSNotification.Name(rawValue: "AppleInterfaceThemeChangedNotification"), object: nil)