Przeglądaj źródła

【fix】【BOTA】注释列表,回复按钮有白边

tangchao 5 miesięcy temu
rodzic
commit
913a2def65

+ 1 - 0
PDF Office/PDF Master/Class/PDFWindowController/Side/LeftSide/Annotation/View/KMNoteFooterCellView.swift

@@ -118,6 +118,7 @@ class KMNoteFooterCellView: NSTableCellView, NibLoadable {
 //        self.replyButton.layer?.backgroundColor = KMAppearance.Interactive.m0Color().cgColor
         self.replyButtonBox.fillColor = KMAppearance.Interactive.m0Color()
         self.replyButtonBox.cornerRadius = 1
+        self.replyButtonBox.borderWidth = 0
         self.replyButton.target = self
         self.replyButton.action = #selector(replyAction)
         self.cancelButton.title = NSLocalizedString("Clear", comment: "")

+ 6 - 0
PDF Office/PDF Master/Class/PDFWindowController/Side/LeftSide/KMLeftSideViewController+Note.swift

@@ -208,6 +208,12 @@ extension KMLeftSideViewController {
         
         menu.addItem(.separator())
         let hideNotes = self.hideNotes()
+//        var theItems: [KMBotaAnnotationModel] = []
+//        for data in items ?? [] {
+//            if let annoModel = data as? KMBotaAnnotationModel {
+//                theItems.append(annoModel)
+//            }
+//        }
         if hideNotes == false && (items?.count ?? 0) == 1 {
             let annotation = self.noteItems(items!).lastObject as? CPDFAnnotation
             if let data = annotation?.isEditable(), data {