Browse Source

【签名&填写表单】选择圆点在页面上绘制,鼠标箭头不显示了 -- 修复

lizhe 11 months ago
parent
commit
086f18b684

+ 4 - 1
PDF Office/PDF Master/Class/PDFWindowController/PDFListView/CPDFKitExtensions/CPDFAnnotationExtensions/CPDFStampAnnotation+PDFListView.swift

@@ -11,7 +11,10 @@ import Foundation
     class func annotationImage(annotationModel: CPDFAnnotationModel) -> NSImage? {
         var image: NSImage?
 //        let bounds = CGRectMake(0, 0, annotationModel.noteWidth(), annotationModel.noteHeight())
-        let bounds = CGRectMake(0, 0, 20, 20)
+        var bounds = CGRectMake(0, 0, 20, 20)
+        if (annotationModel.stampAnnotationType() == .signDot) {
+            bounds = CGRectMake(0, 0, 40, 40)
+        }
         image = NSImage(size: bounds.size)
         image?.lockFocus()
         NSGraphicsContext.current?.imageInterpolation = .high

+ 5 - 1
PDF Office/PDF Master/Class/PDFWindowController/Side/RightSide/EditPDF/KMEditImagePropertyViewController.swift

@@ -324,10 +324,12 @@ class KMEditImagePropertyViewController: NSViewController {
         exportVC?.textColor_focus = KMAppearance.Layout.h1Color()
         exportVC?.updateUI()
         
-        self.noTitleLabel.textColor = NSColor.km_init(hex: "#616469")
+        self.noTitleLabel.textColor = KMAppearance.Layout.h1Color()
         self.noTitleLabel.font = NSFont.SFProTextRegularFont(14)
         
         self.noImageView.image = NSImage(named: "No_addimage")
+//        self.noSubtitleLabel.stringValue = NSLocalizedString("Add Image", comment: "")
+        
         let string = self.noSubtitleLabel.stringValue
         let paragraphStyle = NSMutableParagraphStyle()
         paragraphStyle.lineHeightMultiple = 1.32
@@ -344,6 +346,8 @@ class KMEditImagePropertyViewController: NSViewController {
             self.titleLabel.stringValue = NSLocalizedString("Image", comment: "")
         }
         
+        self.noTitleLabel.stringValue = NSLocalizedString("Add Image", comment: "")
+        
         self.opacityTitleLabel.stringValue = NSLocalizedString("Opacity", comment: "")
         self.cropVC?.stringValue = NSLocalizedString("Crop", comment: "")
         self.confirmVC?.stringValue = NSLocalizedString("Confirm", comment: "")