Преглед на файлове

【2025】【工具】OCR,勾选另存为,按钮icon颜色不对修复

lizhe преди 1 месец
родител
ревизия
5a75b21a09

+ 1 - 1
PDF Office/PDF Master/KMClass/KMHomeViewController/Views/KMHomeOpenView/KMHomeOpenView.swift

@@ -60,7 +60,7 @@ class KMHomeOpenView: BaseXibView {
                                                               showRightIcon: true,
                                                               buttonText: KMLocalizedString("Create PDF"))
         createFileButton.properties.propertyInfo.rightIcon_nor = NSImage(named: "arrowDown")
-        createFileButton.properties.propertyInfo.rightIcon_press = NSImage(named: "arrowDown_press")
+//        createFileButton.properties.propertyInfo.rightIcon_press = NSImage(named: "arrowDown_press")
         createFileButton.reloadData()
         createFileButton.setTarget(self, action: #selector(createFileAction(_:)))
         

+ 1 - 1
PDF Office/PDF Master/KMClass/KMHomeViewController/home.xcassets/arrowDown.imageset/Contents.json

@@ -1,7 +1,7 @@
 {
   "images" : [
     {
-      "filename" : "icon_suffix.pdf",
+      "filename" : "arrowDown 1.pdf",
       "idiom" : "universal"
     }
   ],

+ 76 - 0
PDF Office/PDF Master/KMClass/KMHomeViewController/home.xcassets/arrowDown.imageset/arrowDown 1.pdf

@@ -0,0 +1,76 @@
+%PDF-1.7
+
+1 0 obj
+  << >>
+endobj
+
+2 0 obj
+  << /Length 3 0 R >>
+stream
+/DeviceRGB CS
+/DeviceRGB cs
+q
+1.000000 0.000000 -0.000000 1.000000 3.333252 5.203186 cm
+1.000000 1.000000 1.000000 scn
+0.195262 5.268239 m
+0.455612 5.528588 0.877722 5.528588 1.138071 5.268239 c
+4.666667 1.739643 l
+8.195263 5.268239 l
+8.455612 5.528588 8.877722 5.528588 9.138071 5.268239 c
+9.398421 5.007889 9.398421 4.585779 9.138071 4.325430 c
+5.138071 0.325430 l
+4.877722 0.065080 4.455612 0.065080 4.195262 0.325430 c
+0.195262 4.325430 l
+-0.065087 4.585779 -0.065087 5.007889 0.195262 5.268239 c
+h
+f*
+n
+Q
+
+endstream
+endobj
+
+3 0 obj
+  510
+endobj
+
+4 0 obj
+  << /Annots []
+     /Type /Page
+     /MediaBox [ 0.000000 0.000000 16.000000 16.000000 ]
+     /Resources 1 0 R
+     /Contents 2 0 R
+     /Parent 5 0 R
+  >>
+endobj
+
+5 0 obj
+  << /Kids [ 4 0 R ]
+     /Count 1
+     /Type /Pages
+  >>
+endobj
+
+6 0 obj
+  << /Pages 5 0 R
+     /Type /Catalog
+  >>
+endobj
+
+xref
+0 7
+0000000000 65535 f
+0000000010 00000 n
+0000000034 00000 n
+0000000600 00000 n
+0000000622 00000 n
+0000000795 00000 n
+0000000869 00000 n
+trailer
+<< /ID [ (some) (id) ]
+   /Root 6 0 R
+   /Size 7
+>>
+startxref
+928
+%%EOF

+ 12 - 0
PDF Office/PDF Master/KMClass/KMHomeViewController/home.xcassets/arrowDown2.imageset/Contents.json

@@ -0,0 +1,12 @@
+{
+  "images" : [
+    {
+      "filename" : "icon_suffix.pdf",
+      "idiom" : "universal"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

PDF Office/PDF Master/KMClass/KMHomeViewController/home.xcassets/arrowDown.imageset/icon_suffix.pdf → PDF Office/PDF Master/KMClass/KMHomeViewController/home.xcassets/arrowDown2.imageset/icon_suffix.pdf


+ 1 - 1
PDF Office/PDF Master/KMClass/KMPDFViewController/RightSideController/Views/OCR/Tool/Contoller/KMOCRController.swift

@@ -51,7 +51,7 @@ class KMOCRController: NSViewController {
         
         saveButton.properties = ComponentButtonProperty(type: .primary, size: .m, showRightIcon: true, buttonText: KMLocalizedString("Apply"), keepPressState: false)
         saveButton.properties.propertyInfo.rightIcon_nor = NSImage(named: "arrowDown")
-        saveButton.properties.propertyInfo.rightIcon_press = NSImage(named: "arrowDown_press")
+//        saveButton.properties.propertyInfo.rightIcon_press = NSImage(named: "arrowDown_press")
         saveButton.setTarget(self, action: #selector(saveButtonClicked(_:)))
         
         self.pageView.changeAction = { [unowned self] view, model in