|
@@ -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
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|