Bläddra i källkod

【fix】【注释】高亮、划线、手绘注释icon颜色应该是可变的

tangchao 10 månader sedan
förälder
incheckning
b506bfe774

+ 16 - 16
PDF Office/PDF Master/Class/PDFWindowController/Side/RightSide/AnnotationProperty/KMGeneralAnnotationViewController.swift

@@ -1669,22 +1669,22 @@ let KMColorPickerViewHeight: CGFloat = 64
                 } else {
                     annotationModel?.setOpacity(opacity)
                     annotationModel?.setColor(textColor)
-//                    if let model = self.annotationModel {
-//                        if (model.annotation == nil || CPDFListViewConfig.defaultManager.isSaveDefault) && self.isannotationMode {
-//                            if self.annotationType.isMarkup() {
-//                                let type = self.annotationType
-//                                if type == .highlight {
-//                                    KMPreferenceManager.shared.markupHighlightColor = textColor
-//                                } else if type == .underline {
-//                                    KMPreferenceManager.shared.markupUnderlineColor = textColor
-//                                } else if type == .strikeOut {
-//                                    KMPreferenceManager.shared.markupStrikthroughColor = textColor
-//                                } else if type == .ink {
-//                                    KMPreferenceManager.shared.markupPenColor = textColor
-//                                }
-//                            }
-//                        }
-//                    }
+                    if let model = self.annotationModel {
+                        if (model.annotation == nil || CPDFListViewConfig.defaultManager.isSaveDefault) && self.isannotationMode {
+                            if self.annotationType.isMarkup() {
+                                let type = self.annotationType
+                                if type == .highlight {
+                                    KMPreferenceManager.shared.markupHighlightColor = textColor
+                                } else if type == .underline {
+                                    KMPreferenceManager.shared.markupUnderlineColor = textColor
+                                } else if type == .strikeOut {
+                                    KMPreferenceManager.shared.markupStrikthroughColor = textColor
+                                } else if type == .ink {
+                                    KMPreferenceManager.shared.markupPenColor = textColor
+                                }
+                            }
+                        }
+                    }
                 }
             }