Quellcode durchsuchen

【fix】 编辑注释光标不随着注释颜色变化

dinglingui vor 5 Monaten
Ursprung
Commit
e33a2c8609

+ 4 - 5
PDF Office/PDF Master/Class/PDFWindowController/PDFListView/AppKitCategories/CPDFListEditAnnotationViewController.swift

@@ -62,11 +62,11 @@ class CPDFListEditAnnotationViewController: NSViewController, NSTextViewDelegate
         let box = self.borderBox
         if self.annotation.color != nil {
             box?.borderColor = self.annotation.color
-            self.contentTextView.insertionPointColor = self.annotation.color
         } else {
             box?.borderColor = NSColor.white
-            self.contentTextView.insertionPointColor = NSColor.black
         }
+        contentTextView.insertionPointColor = KMAppearance.titleColor()
+
         box?.fillColor = KMAppearance.Layout.l1Color()
         self.colors.removeAll()
         var i = 0
@@ -179,12 +179,11 @@ class CPDFListEditAnnotationViewController: NSViewController, NSTextViewDelegate
         
         if let annotationColor = annotation.color {
             borderBox.borderColor = annotationColor
-            contentTextView.insertionPointColor = annotationColor
         } else {
             borderBox.borderColor = .white
-            contentTextView.insertionPointColor = .black
         }
-        
+        contentTextView.insertionPointColor = KMAppearance.titleColor()
+
         if let changeColorCallBack1 = self.changeColorCallBack {
             changeColorCallBack1()
         }