Forráskód Böngészése

【签名】- 签名属性栏UI

liujiajie 11 hónapja
szülő
commit
2bf8bc154e

+ 4 - 2
PDF Office/PDF Master/Class/PDFWindowController/Side/RightSide/Signature/KMSigntureViewItem.swift

@@ -95,8 +95,9 @@ import Cocoa
         super.mouseEntered(with: event)
 
         if isSelect {
-
+            self.deleteIconBtn.isHidden = false
         } else {
+            self.deleteIconBtn.isHidden = false
             if KMAppearance.isDarkMode() {
                 self.contendView.layer?.borderColor = NSColor(red: 37/255.0, green: 65/255.0, blue: 107/255.0, alpha: 1.0).cgColor
                 self.contendView.layer?.backgroundColor = NSColor(red: 37/255.0, green: 65/255.0, blue: 107/255.0, alpha: 1.0).cgColor
@@ -111,8 +112,9 @@ import Cocoa
         super.mouseExited(with: event)
 
         if isSelect {
-
+            self.deleteIconBtn.isHidden = false
         } else {
+            self.deleteIconBtn.isHidden = true
             self.contendView.layer?.borderColor = NSColor.clear.cgColor
             self.contendView.layer?.backgroundColor = NSColor.clear.cgColor
         }

+ 7 - 7
PDF Office/PDF Master/Class/PDFWindowController/Side/RightSide/Signature/KMSigntureViewItem.xib

@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22154" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22155" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
     <dependencies>
         <deployment identifier="macosx"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22154"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22155"/>
         <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
     </dependencies>
     <objects>
@@ -28,8 +28,8 @@
                             <imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" id="eDR-Fq-gAP"/>
                         </imageView>
                         <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="o7x-9r-sOc">
-                            <rect key="frame" x="186" y="22" width="30" height="30"/>
-                            <buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" image="KMImageNamePropertybarDeleteStamp" imagePosition="only" alignment="center" state="on" imageScaling="proportionallyDown" inset="2" id="Ila-Cl-Vdj">
+                            <rect key="frame" x="196" y="32" width="30" height="30"/>
+                            <buttonCell key="cell" type="square" bezelStyle="shadowlessSquare" image="KMImageNameUXIconBtnCloseNor" imagePosition="only" alignment="center" state="on" imageScaling="proportionallyDown" inset="2" id="Ila-Cl-Vdj">
                                 <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
                                 <font key="font" metaFont="system"/>
                             </buttonCell>
@@ -40,12 +40,12 @@
                         </button>
                     </subviews>
                     <constraints>
-                        <constraint firstItem="o7x-9r-sOc" firstAttribute="top" secondItem="2B3-pm-Vma" secondAttribute="top" constant="12" id="PFh-U1-95c"/>
+                        <constraint firstItem="o7x-9r-sOc" firstAttribute="top" secondItem="2B3-pm-Vma" secondAttribute="top" constant="2" id="PFh-U1-95c"/>
                         <constraint firstAttribute="bottom" secondItem="UhD-yF-ZIM" secondAttribute="bottom" id="RBr-cC-NId"/>
                         <constraint firstItem="UhD-yF-ZIM" firstAttribute="top" secondItem="2B3-pm-Vma" secondAttribute="top" id="eEk-R2-SoC"/>
                         <constraint firstItem="UhD-yF-ZIM" firstAttribute="leading" secondItem="2B3-pm-Vma" secondAttribute="leading" id="foh-jc-In4"/>
                         <constraint firstAttribute="trailing" secondItem="UhD-yF-ZIM" secondAttribute="trailing" id="fp5-FK-8L4"/>
-                        <constraint firstAttribute="trailing" secondItem="o7x-9r-sOc" secondAttribute="trailing" constant="12" id="lGH-Vw-F4a"/>
+                        <constraint firstAttribute="trailing" secondItem="o7x-9r-sOc" secondAttribute="trailing" constant="2" id="lGH-Vw-F4a"/>
                     </constraints>
                 </customView>
             </subviews>
@@ -59,6 +59,6 @@
         </customView>
     </objects>
     <resources>
-        <image name="KMImageNamePropertybarDeleteStamp" width="12" height="12"/>
+        <image name="KMImageNameUXIconBtnCloseNor" width="16" height="16"/>
     </resources>
 </document>