Browse Source

【EditPDF】属性面板UI调整

tangchao 8 months ago
parent
commit
b04b616b14

+ 44 - 2
PDF Office/PDF Master/Class/PDFWindowController/Side/RightSide/EditPDF/KMEditImagePropertyViewController.swift

@@ -222,6 +222,12 @@ class KMEditImagePropertyViewController: NSViewController {
             self.backgroundView.backgroundColor(NSColor.km_init(hex: "#FAFAFA"))
             self.noBackgroundView.backgroundColor(NSColor.km_init(hex: "#F7F8FA"))
         }
+        
+        for label in [self.whTitleLabel, self.opacityTitleLabel,
+                      self.turnOverTitleLabel] {
+            label?.font = NSFont.SFProTextSemiboldFont(12.0)
+            label?.textColor = NSColor.km_init(hex: "#616469")
+        }
     }
     
     deinit {
@@ -292,6 +298,15 @@ class KMEditImagePropertyViewController: NSViewController {
         self.leftRotateVC?.action = #selector(leftRotationImageAction)
         self.leftRotateVC?.image = NSImage(named: "KMImageNameEditPDFRotationLeft")!
         self.leftRotateVC?.pagination()
+        leftRotateVC?.borderColor = KMAppearance.Interactive.s0Color()
+        leftRotateVC?.background = KMAppearance.Layout.l1Color()
+        leftRotateVC?.background_hov = KMAppearance.view_bg_dis_color()
+        leftRotateVC?.background_focus = KMAppearance.Layout.l1Color()
+        leftRotateVC?.textColor = KMAppearance.Layout.h1Color()
+        leftRotateVC?.textColor_hov = KMAppearance.Layout.h1Color()
+        leftRotateVC?.textColor_focus = KMAppearance.Layout.h1Color()
+        leftRotateVC?.borderColor_hov = KMAppearance.Interactive.s0Color()
+        leftRotateVC?.updateUI()
         
         self.rightRotateVC = KMDesignButton(withType: .Image)
         self.rightRotateBox.contentView = self.rightRotateVC?.view
@@ -300,6 +315,15 @@ class KMEditImagePropertyViewController: NSViewController {
         self.rightRotateVC?.action = #selector(rightRotationImageAction)
         self.rightRotateVC?.image = NSImage(named: "KMImageNameEditPDFRotationRight")!
         self.rightRotateVC?.pagination()
+        rightRotateVC?.borderColor = KMAppearance.Interactive.s0Color()
+        rightRotateVC?.background = KMAppearance.Layout.l1Color()
+        rightRotateVC?.background_hov = KMAppearance.view_bg_dis_color()
+        rightRotateVC?.background_focus = KMAppearance.Layout.l1Color()
+        rightRotateVC?.textColor = KMAppearance.Layout.h1Color()
+        rightRotateVC?.textColor_hov = KMAppearance.Layout.h1Color()
+        rightRotateVC?.textColor_focus = KMAppearance.Layout.h1Color()
+        rightRotateVC?.borderColor_hov = KMAppearance.Interactive.s0Color()
+        rightRotateVC?.updateUI()
         
         opacityVC = KMDesignSelect.init(withType: .PopButton)
         opacityBox.contentView = opacityVC?.view
@@ -381,6 +405,15 @@ class KMEditImagePropertyViewController: NSViewController {
         self.reverseXVC?.action = #selector(flipHorizontalImageAction)
         self.reverseXVC?.image = NSImage(named: "KMImageNameEditPDFReverseX")!
         self.reverseXVC?.pagination()
+        reverseXVC?.borderColor = KMAppearance.Interactive.s0Color()
+        reverseXVC?.background = KMAppearance.Layout.l1Color()
+        reverseXVC?.background_hov = KMAppearance.view_bg_dis_color()
+        reverseXVC?.background_focus = KMAppearance.Layout.l1Color()
+        reverseXVC?.textColor = KMAppearance.Layout.h1Color()
+        reverseXVC?.textColor_hov = KMAppearance.Layout.h1Color()
+        reverseXVC?.textColor_focus = KMAppearance.Layout.h1Color()
+        reverseXVC?.borderColor_hov = KMAppearance.Interactive.s0Color()
+        reverseXVC?.updateUI()
         
         self.reverseYVC = KMDesignButton(withType: .Image)
         self.reverseYBox.addSubview(self.reverseYVC!.view)
@@ -390,6 +423,15 @@ class KMEditImagePropertyViewController: NSViewController {
         self.reverseYVC?.action = #selector(flipVerticalImageAction)
         self.reverseYVC?.image = NSImage(named: "KMImageNameEditPDFReverseY")!
         self.reverseYVC?.pagination()
+        reverseYVC?.borderColor = KMAppearance.Interactive.s0Color()
+        reverseYVC?.background = KMAppearance.Layout.l1Color()
+        reverseYVC?.background_hov = KMAppearance.view_bg_dis_color()
+        reverseYVC?.background_focus = KMAppearance.Layout.l1Color()
+        reverseYVC?.textColor = KMAppearance.Layout.h1Color()
+        reverseYVC?.textColor_hov = KMAppearance.Layout.h1Color()
+        reverseYVC?.textColor_focus = KMAppearance.Layout.h1Color()
+        reverseYVC?.borderColor_hov = KMAppearance.Interactive.s0Color()
+        reverseYVC?.updateUI()
         
         self.toolsTitleLabel.stringValue = NSLocalizedString("Tools", comment: "")
         
@@ -543,7 +585,7 @@ class KMEditImagePropertyViewController: NSViewController {
 //                self.cropBox.isHidden = false
 //                self.cancelBox.isHidden = false
 //                self.replaceBox.isHidden = false
-                self.buttonBoxHeight.constant = 112+16
+                self.buttonBoxHeight.constant = 112+16+8
 //                self.editImageView.image = self.listView.selectImageAreas.thumbnailImage
                 self.alignmentViewTopConstraint.constant = 16
 
@@ -568,7 +610,7 @@ class KMEditImagePropertyViewController: NSViewController {
 //                self.cancelBox.isHidden = true
 //                self.replaceBox.isHidden = true
                 // 0
-                self.buttonBoxHeight.constant = 112+16
+                self.buttonBoxHeight.constant = 112+16+8
                 self.alignmentViewTopConstraint.constant = 16
                 var opacity = self.listView.opacity(for: imagesAreas.first)
                 for area in imagesAreas {

+ 43 - 43
PDF Office/PDF Master/Class/PDFWindowController/Side/RightSide/EditPDF/KMEditImagePropertyViewController.xib

@@ -61,13 +61,13 @@
                         <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                         <subviews>
                             <box borderType="none" title="Box" titlePosition="noTitle" translatesAutoresizingMaskIntoConstraints="NO" id="qjn-Az-nK1">
-                                <rect key="frame" x="7" y="248" width="246" height="62"/>
+                                <rect key="frame" x="-3" y="248" width="266" height="62"/>
                                 <view key="contentView" id="vpF-9O-Amq">
-                                    <rect key="frame" x="0.0" y="0.0" width="246" height="62"/>
+                                    <rect key="frame" x="0.0" y="0.0" width="266" height="62"/>
                                     <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                                     <subviews>
                                         <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="XPI-yz-g9u">
-                                            <rect key="frame" x="-2" y="46" width="49" height="16"/>
+                                            <rect key="frame" x="14" y="46" width="49" height="16"/>
                                             <textFieldCell key="cell" lineBreakMode="clipping" title="opacity" id="LXH-cy-YvE">
                                                 <font key="font" usesAppearanceFont="YES"/>
                                                 <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
@@ -75,7 +75,7 @@
                                             </textFieldCell>
                                         </textField>
                                         <customView translatesAutoresizingMaskIntoConstraints="NO" id="GOt-dw-CGs">
-                                            <rect key="frame" x="0.0" y="6" width="246" height="32"/>
+                                            <rect key="frame" x="16" y="6" width="234" height="32"/>
                                             <subviews>
                                                 <slider verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Z0O-zt-cBQ">
                                                     <rect key="frame" x="-2" y="0.0" width="144" height="28"/>
@@ -85,7 +85,7 @@
                                                     <sliderCell key="cell" state="on" alignment="left" maxValue="1" doubleValue="1" tickMarkPosition="above" sliderType="linear" id="RhD-fs-Ulr"/>
                                                 </slider>
                                                 <box boxType="custom" borderWidth="0.0" cornerRadius="4" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="9ig-7b-xDq">
-                                                    <rect key="frame" x="164" y="0.0" width="82" height="32"/>
+                                                    <rect key="frame" x="152" y="0.0" width="82" height="32"/>
                                                     <view key="contentView" id="fr5-qz-wFC">
                                                         <rect key="frame" x="0.0" y="0.0" width="82" height="32"/>
                                                         <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
@@ -107,10 +107,10 @@
                                         </customView>
                                     </subviews>
                                     <constraints>
-                                        <constraint firstItem="GOt-dw-CGs" firstAttribute="leading" secondItem="vpF-9O-Amq" secondAttribute="leading" id="GF9-3C-ECz"/>
+                                        <constraint firstItem="GOt-dw-CGs" firstAttribute="leading" secondItem="vpF-9O-Amq" secondAttribute="leading" constant="16" id="GF9-3C-ECz"/>
                                         <constraint firstItem="GOt-dw-CGs" firstAttribute="top" secondItem="XPI-yz-g9u" secondAttribute="bottom" constant="8" id="Gn6-Q3-jUN"/>
-                                        <constraint firstAttribute="trailing" secondItem="GOt-dw-CGs" secondAttribute="trailing" id="m5R-JO-ivq"/>
-                                        <constraint firstItem="XPI-yz-g9u" firstAttribute="leading" secondItem="vpF-9O-Amq" secondAttribute="leading" id="nfZ-u0-N6t"/>
+                                        <constraint firstAttribute="trailing" secondItem="GOt-dw-CGs" secondAttribute="trailing" constant="16" id="m5R-JO-ivq"/>
+                                        <constraint firstItem="XPI-yz-g9u" firstAttribute="leading" secondItem="vpF-9O-Amq" secondAttribute="leading" constant="16" id="nfZ-u0-N6t"/>
                                         <constraint firstItem="XPI-yz-g9u" firstAttribute="top" secondItem="vpF-9O-Amq" secondAttribute="top" id="tze-rK-ov2"/>
                                     </constraints>
                                 </view>
@@ -119,13 +119,13 @@
                                 </constraints>
                             </box>
                             <box boxType="custom" borderWidth="0.0" cornerRadius="4" title="Box" titlePosition="noTitle" translatesAutoresizingMaskIntoConstraints="NO" id="eqj-Xy-OX5">
-                                <rect key="frame" x="8" y="202" width="244" height="50"/>
+                                <rect key="frame" x="0.0" y="194" width="260" height="58"/>
                                 <view key="contentView" id="zu8-9v-SFi">
-                                    <rect key="frame" x="0.0" y="0.0" width="244" height="50"/>
+                                    <rect key="frame" x="0.0" y="0.0" width="260" height="58"/>
                                     <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                                     <subviews>
                                         <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="eCo-1Z-05J">
-                                            <rect key="frame" x="-2" y="34" width="37" height="16"/>
+                                            <rect key="frame" x="14" y="42" width="37" height="16"/>
                                             <textFieldCell key="cell" lineBreakMode="clipping" title="Label" id="7YT-SN-29T">
                                                 <font key="font" usesAppearanceFont="YES"/>
                                                 <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
@@ -133,14 +133,14 @@
                                             </textFieldCell>
                                         </textField>
                                         <customView translatesAutoresizingMaskIntoConstraints="NO" id="pHm-Cq-n6Z">
-                                            <rect key="frame" x="0.0" y="2" width="32" height="32"/>
+                                            <rect key="frame" x="16" y="2" width="32" height="32"/>
                                             <constraints>
                                                 <constraint firstAttribute="height" constant="32" id="oOn-jX-72Q"/>
                                                 <constraint firstAttribute="width" constant="32" id="pvO-Es-hOd"/>
                                             </constraints>
                                         </customView>
                                         <customView translatesAutoresizingMaskIntoConstraints="NO" id="TIB-HX-1bX">
-                                            <rect key="frame" x="40" y="2" width="32" height="32"/>
+                                            <rect key="frame" x="56" y="2" width="32" height="32"/>
                                             <constraints>
                                                 <constraint firstAttribute="width" constant="32" id="9P6-QH-u9g"/>
                                                 <constraint firstAttribute="height" constant="32" id="GGr-l4-f11"/>
@@ -149,15 +149,15 @@
                                     </subviews>
                                     <constraints>
                                         <constraint firstItem="TIB-HX-1bX" firstAttribute="leading" secondItem="pHm-Cq-n6Z" secondAttribute="trailing" constant="8" id="B37-Tv-bom"/>
-                                        <constraint firstItem="pHm-Cq-n6Z" firstAttribute="top" secondItem="eCo-1Z-05J" secondAttribute="bottom" id="GoE-2W-WAa"/>
-                                        <constraint firstItem="pHm-Cq-n6Z" firstAttribute="leading" secondItem="zu8-9v-SFi" secondAttribute="leading" id="Rbw-f7-88Z"/>
+                                        <constraint firstItem="pHm-Cq-n6Z" firstAttribute="top" secondItem="eCo-1Z-05J" secondAttribute="bottom" constant="8" id="GoE-2W-WAa"/>
+                                        <constraint firstItem="pHm-Cq-n6Z" firstAttribute="leading" secondItem="zu8-9v-SFi" secondAttribute="leading" constant="16" id="Rbw-f7-88Z"/>
                                         <constraint firstItem="TIB-HX-1bX" firstAttribute="centerY" secondItem="pHm-Cq-n6Z" secondAttribute="centerY" id="dCL-JX-XD8"/>
                                         <constraint firstItem="eCo-1Z-05J" firstAttribute="top" secondItem="zu8-9v-SFi" secondAttribute="top" id="fh4-Q9-Yv2"/>
-                                        <constraint firstItem="eCo-1Z-05J" firstAttribute="leading" secondItem="zu8-9v-SFi" secondAttribute="leading" id="ixR-CK-Py4"/>
+                                        <constraint firstItem="eCo-1Z-05J" firstAttribute="leading" secondItem="zu8-9v-SFi" secondAttribute="leading" constant="16" id="ixR-CK-Py4"/>
                                     </constraints>
                                 </view>
                                 <constraints>
-                                    <constraint firstAttribute="height" constant="50" id="Ijq-FJ-Uda"/>
+                                    <constraint firstAttribute="height" constant="58" id="Ijq-FJ-Uda"/>
                                 </constraints>
                             </box>
                             <box borderType="none" title="Box" titlePosition="noTitle" translatesAutoresizingMaskIntoConstraints="NO" id="6yW-By-Sg9">
@@ -167,7 +167,7 @@
                                     <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                                     <subviews>
                                         <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="hgU-r9-q9f">
-                                            <rect key="frame" x="8" y="116" width="37" height="16"/>
+                                            <rect key="frame" x="14" y="116" width="37" height="16"/>
                                             <textFieldCell key="cell" lineBreakMode="clipping" title="Label" id="5Xn-4H-Ifh">
                                                 <font key="font" metaFont="system"/>
                                                 <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
@@ -183,14 +183,14 @@
                                             </textFieldCell>
                                         </textField>
                                         <customView translatesAutoresizingMaskIntoConstraints="NO" id="PmV-dZ-BhA" customClass="KMTextFieldItemView" customModule="PDF_Reader_Pro" customModuleProvider="target">
-                                            <rect key="frame" x="10" y="84" width="94" height="32"/>
+                                            <rect key="frame" x="16" y="76" width="94" height="32"/>
                                             <constraints>
                                                 <constraint firstAttribute="width" constant="94" id="3qk-F4-LsX"/>
                                                 <constraint firstAttribute="height" constant="32" id="Ftc-BY-iyg"/>
                                             </constraints>
                                         </customView>
                                         <box boxType="custom" cornerRadius="4" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="9WM-Yr-3Hr">
-                                            <rect key="frame" x="112" y="84" width="32" height="32"/>
+                                            <rect key="frame" x="118" y="76" width="32" height="32"/>
                                             <view key="contentView" id="67e-I9-UTy">
                                                 <rect key="frame" x="1" y="1" width="30" height="30"/>
                                                 <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
@@ -201,14 +201,14 @@
                                             </constraints>
                                         </box>
                                         <customView translatesAutoresizingMaskIntoConstraints="NO" id="x7h-ZX-NVn" customClass="KMTextFieldItemView" customModule="PDF_Reader_Pro" customModuleProvider="target">
-                                            <rect key="frame" x="152" y="84" width="94" height="32"/>
+                                            <rect key="frame" x="158" y="76" width="94" height="32"/>
                                             <constraints>
                                                 <constraint firstAttribute="height" constant="32" id="9wX-j7-49e"/>
                                                 <constraint firstAttribute="width" constant="94" id="cEC-d9-E3a"/>
                                             </constraints>
                                         </customView>
                                         <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="hif-FL-3vF">
-                                            <rect key="frame" x="8" y="56" width="37" height="16"/>
+                                            <rect key="frame" x="14" y="48" width="37" height="16"/>
                                             <textFieldCell key="cell" lineBreakMode="clipping" title="Label" id="79h-GY-A9Z">
                                                 <font key="font" metaFont="system"/>
                                                 <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
@@ -216,14 +216,14 @@
                                             </textFieldCell>
                                         </textField>
                                         <customView translatesAutoresizingMaskIntoConstraints="NO" id="VIp-mo-ECx" customClass="KMTextFieldItemView" customModule="PDF_Reader_Pro" customModuleProvider="target">
-                                            <rect key="frame" x="10" y="16" width="160" height="32"/>
+                                            <rect key="frame" x="16" y="8" width="160" height="32"/>
                                             <constraints>
                                                 <constraint firstAttribute="width" constant="160" id="fBp-iI-vL7"/>
                                                 <constraint firstAttribute="height" constant="32" id="gpq-nb-TT2"/>
                                             </constraints>
                                         </customView>
                                         <box boxType="custom" cornerRadius="4" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="AY8-Zu-th7">
-                                            <rect key="frame" x="178" y="16" width="32" height="32"/>
+                                            <rect key="frame" x="184" y="8" width="32" height="32"/>
                                             <view key="contentView" id="sHE-gV-Ntc">
                                                 <rect key="frame" x="1" y="1" width="30" height="30"/>
                                                 <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
@@ -234,7 +234,7 @@
                                             </constraints>
                                         </box>
                                         <box boxType="custom" cornerRadius="4" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="aan-vb-NGS">
-                                            <rect key="frame" x="218" y="16" width="32" height="32"/>
+                                            <rect key="frame" x="224" y="8" width="32" height="32"/>
                                             <view key="contentView" id="RuT-lT-vTn">
                                                 <rect key="frame" x="1" y="1" width="30" height="30"/>
                                                 <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
@@ -250,20 +250,20 @@
                                         <constraint firstItem="AY8-Zu-th7" firstAttribute="leading" secondItem="VIp-mo-ECx" secondAttribute="trailing" constant="8" id="BnB-6T-kSB"/>
                                         <constraint firstItem="x7h-ZX-NVn" firstAttribute="leading" secondItem="PmV-dZ-BhA" secondAttribute="trailing" constant="48" id="DP3-N8-lVQ"/>
                                         <constraint firstItem="9WM-Yr-3Hr" firstAttribute="centerY" secondItem="PmV-dZ-BhA" secondAttribute="centerY" id="FiW-GK-JHx"/>
-                                        <constraint firstItem="hif-FL-3vF" firstAttribute="leading" secondItem="IgG-3G-s7G" secondAttribute="leading" constant="10" id="Hop-3W-XWW"/>
+                                        <constraint firstItem="hif-FL-3vF" firstAttribute="leading" secondItem="IgG-3G-s7G" secondAttribute="leading" constant="16" id="Hop-3W-XWW"/>
                                         <constraint firstItem="x7h-ZX-NVn" firstAttribute="centerY" secondItem="PmV-dZ-BhA" secondAttribute="centerY" id="Pu5-G0-uQm"/>
                                         <constraint firstItem="x6y-yu-lpY" firstAttribute="top" secondItem="IgG-3G-s7G" secondAttribute="top" constant="16" id="RkI-P7-x7J"/>
                                         <constraint firstItem="x6y-yu-lpY" firstAttribute="leading" secondItem="IgG-3G-s7G" secondAttribute="leading" constant="16" id="Ug4-5f-oyS"/>
                                         <constraint firstItem="AY8-Zu-th7" firstAttribute="trailing" secondItem="aan-vb-NGS" secondAttribute="leading" constant="-8" id="VtC-Yb-d4b"/>
                                         <constraint firstItem="AY8-Zu-th7" firstAttribute="centerY" secondItem="VIp-mo-ECx" secondAttribute="centerY" id="YrA-TV-dgi"/>
-                                        <constraint firstItem="PmV-dZ-BhA" firstAttribute="leading" secondItem="IgG-3G-s7G" secondAttribute="leading" constant="10" id="aMd-Ep-UKp"/>
+                                        <constraint firstItem="PmV-dZ-BhA" firstAttribute="leading" secondItem="IgG-3G-s7G" secondAttribute="leading" constant="16" id="aMd-Ep-UKp"/>
                                         <constraint firstItem="hif-FL-3vF" firstAttribute="bottom" secondItem="VIp-mo-ECx" secondAttribute="top" constant="-8" id="cQU-GB-7fd"/>
                                         <constraint firstItem="9WM-Yr-3Hr" firstAttribute="leading" secondItem="PmV-dZ-BhA" secondAttribute="trailing" constant="8" id="hTg-41-AkP"/>
-                                        <constraint firstItem="VIp-mo-ECx" firstAttribute="leading" secondItem="IgG-3G-s7G" secondAttribute="leading" constant="10" id="hyW-Ed-4Tk"/>
-                                        <constraint firstItem="PmV-dZ-BhA" firstAttribute="top" secondItem="hgU-r9-q9f" secondAttribute="bottom" id="kFJ-Id-V99"/>
+                                        <constraint firstItem="VIp-mo-ECx" firstAttribute="leading" secondItem="IgG-3G-s7G" secondAttribute="leading" constant="16" id="hyW-Ed-4Tk"/>
+                                        <constraint firstItem="PmV-dZ-BhA" firstAttribute="top" secondItem="hgU-r9-q9f" secondAttribute="bottom" constant="8" id="kFJ-Id-V99"/>
                                         <constraint firstItem="hgU-r9-q9f" firstAttribute="top" secondItem="IgG-3G-s7G" secondAttribute="top" constant="50" id="mHW-3r-V3a"/>
                                         <constraint firstItem="hif-FL-3vF" firstAttribute="top" secondItem="x7h-ZX-NVn" secondAttribute="bottom" constant="12" id="obY-0q-GUd"/>
-                                        <constraint firstItem="hgU-r9-q9f" firstAttribute="leading" secondItem="IgG-3G-s7G" secondAttribute="leading" constant="10" id="wq0-tg-1cn"/>
+                                        <constraint firstItem="hgU-r9-q9f" firstAttribute="leading" secondItem="IgG-3G-s7G" secondAttribute="leading" constant="16" id="wq0-tg-1cn"/>
                                     </constraints>
                                 </view>
                                 <constraints>
@@ -271,13 +271,13 @@
                                 </constraints>
                             </box>
                             <box boxType="custom" borderType="none" borderWidth="0.0" title="Box" titlePosition="noTitle" translatesAutoresizingMaskIntoConstraints="NO" id="9za-vG-ihA">
-                                <rect key="frame" x="16" y="58" width="228" height="128"/>
+                                <rect key="frame" x="16" y="50" width="228" height="136"/>
                                 <view key="contentView" id="ZP8-0e-bWE">
-                                    <rect key="frame" x="0.0" y="0.0" width="228" height="128"/>
+                                    <rect key="frame" x="0.0" y="0.0" width="228" height="136"/>
                                     <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                                     <subviews>
                                         <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="dbS-0w-mS5">
-                                            <rect key="frame" x="6" y="112" width="37" height="16"/>
+                                            <rect key="frame" x="-2" y="120" width="37" height="16"/>
                                             <textFieldCell key="cell" lineBreakMode="clipping" title="Label" id="Tba-gg-Mvz">
                                                 <font key="font" usesAppearanceFont="YES"/>
                                                 <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
@@ -344,16 +344,16 @@
                                     </subviews>
                                     <constraints>
                                         <constraint firstItem="8lZ-Kd-hWi" firstAttribute="top" secondItem="dSf-T8-3R3" secondAttribute="bottom" constant="8" id="1cM-b0-HG6"/>
-                                        <constraint firstItem="vr8-ml-OC0" firstAttribute="top" secondItem="ZP8-0e-bWE" secondAttribute="top" constant="16" id="7eg-5O-Noy"/>
+                                        <constraint firstItem="vr8-ml-OC0" firstAttribute="top" secondItem="ZP8-0e-bWE" secondAttribute="top" constant="24" id="7eg-5O-Noy"/>
                                         <constraint firstItem="dSf-T8-3R3" firstAttribute="leading" secondItem="AAt-gQ-hOo" secondAttribute="leading" id="DLy-ZC-KU3"/>
                                         <constraint firstItem="dbS-0w-mS5" firstAttribute="top" secondItem="ZP8-0e-bWE" secondAttribute="top" id="Jqr-5w-XfE"/>
-                                        <constraint firstItem="dbS-0w-mS5" firstAttribute="leading" secondItem="ZP8-0e-bWE" secondAttribute="leading" constant="8" id="O7u-oY-fGr"/>
+                                        <constraint firstItem="dbS-0w-mS5" firstAttribute="leading" secondItem="ZP8-0e-bWE" secondAttribute="leading" id="O7u-oY-fGr"/>
                                         <constraint firstAttribute="trailing" secondItem="AAt-gQ-hOo" secondAttribute="trailing" id="ahn-mQ-E04"/>
-                                        <constraint firstItem="xPh-yv-2Ch" firstAttribute="top" secondItem="ZP8-0e-bWE" secondAttribute="top" constant="16" id="cR6-6m-qQi"/>
+                                        <constraint firstItem="xPh-yv-2Ch" firstAttribute="top" secondItem="ZP8-0e-bWE" secondAttribute="top" constant="24" id="cR6-6m-qQi"/>
                                         <constraint firstItem="dSf-T8-3R3" firstAttribute="top" secondItem="AAt-gQ-hOo" secondAttribute="bottom" constant="8" id="duj-XY-A1h"/>
                                         <constraint firstAttribute="trailing" secondItem="vr8-ml-OC0" secondAttribute="trailing" id="fu2-Bc-acA"/>
                                         <constraint firstItem="dSf-T8-3R3" firstAttribute="trailing" secondItem="vr8-ml-OC0" secondAttribute="trailing" id="iAd-S8-C1J"/>
-                                        <constraint firstItem="AAt-gQ-hOo" firstAttribute="top" secondItem="ZP8-0e-bWE" secondAttribute="top" constant="16" id="lsl-8s-FyF"/>
+                                        <constraint firstItem="AAt-gQ-hOo" firstAttribute="top" secondItem="ZP8-0e-bWE" secondAttribute="top" constant="24" id="lsl-8s-FyF"/>
                                         <constraint firstItem="xPh-yv-2Ch" firstAttribute="leading" secondItem="ZP8-0e-bWE" secondAttribute="leading" id="mOu-vx-pMD"/>
                                         <constraint firstItem="AAt-gQ-hOo" firstAttribute="leading" secondItem="ZP8-0e-bWE" secondAttribute="leading" id="n2m-zi-EMC"/>
                                         <constraint firstItem="dSf-T8-3R3" firstAttribute="trailing" secondItem="8lZ-Kd-hWi" secondAttribute="trailing" id="ouP-EF-VqU"/>
@@ -361,11 +361,11 @@
                                     </constraints>
                                 </view>
                                 <constraints>
-                                    <constraint firstAttribute="height" constant="128" id="q4K-hM-hqe"/>
+                                    <constraint firstAttribute="height" constant="136" id="q4K-hM-hqe"/>
                                 </constraints>
                             </box>
                             <customView translatesAutoresizingMaskIntoConstraints="NO" id="3AP-7h-Nfc" customClass="KMEditPropertyAlignmentView" customModule="PDF_Reader_Pro" customModuleProvider="target">
-                                <rect key="frame" x="16" y="-58" width="228" height="100"/>
+                                <rect key="frame" x="16" y="-66" width="228" height="100"/>
                                 <constraints>
                                     <constraint firstAttribute="height" constant="100" id="fcW-mh-2WD"/>
                                 </constraints>
@@ -415,16 +415,16 @@
                         <constraints>
                             <constraint firstAttribute="bottom" secondItem="2cv-Bg-EQU" secondAttribute="bottom" id="4oe-1N-VuF"/>
                             <constraint firstItem="qjn-Az-nK1" firstAttribute="bottom" secondItem="eqj-Xy-OX5" secondAttribute="top" id="88P-ym-ngd"/>
-                            <constraint firstAttribute="trailing" secondItem="eqj-Xy-OX5" secondAttribute="trailing" constant="8" id="Bkm-2V-KKh"/>
+                            <constraint firstAttribute="trailing" secondItem="eqj-Xy-OX5" secondAttribute="trailing" id="Bkm-2V-KKh"/>
                             <constraint firstAttribute="trailing" secondItem="3AP-7h-Nfc" secondAttribute="trailing" constant="16" id="DPV-qc-7Mx"/>
                             <constraint firstAttribute="trailing" secondItem="6yW-By-Sg9" secondAttribute="trailing" id="HzJ-TZ-atu"/>
                             <constraint firstItem="6yW-By-Sg9" firstAttribute="top" secondItem="wc3-Ma-X7s" secondAttribute="top" id="IFt-ky-q6h"/>
                             <constraint firstItem="2cv-Bg-EQU" firstAttribute="leading" secondItem="wc3-Ma-X7s" secondAttribute="leading" id="TQi-cc-SCm"/>
                             <constraint firstItem="3AP-7h-Nfc" firstAttribute="top" secondItem="9za-vG-ihA" secondAttribute="bottom" constant="16" id="Vog-68-6WN"/>
-                            <constraint firstItem="qjn-Az-nK1" firstAttribute="leading" secondItem="wc3-Ma-X7s" secondAttribute="leading" constant="10" id="WQh-6J-l34"/>
-                            <constraint firstAttribute="trailing" secondItem="qjn-Az-nK1" secondAttribute="trailing" constant="10" id="Z7T-fd-4CF"/>
+                            <constraint firstItem="qjn-Az-nK1" firstAttribute="leading" secondItem="wc3-Ma-X7s" secondAttribute="leading" id="WQh-6J-l34"/>
+                            <constraint firstAttribute="trailing" secondItem="qjn-Az-nK1" secondAttribute="trailing" id="Z7T-fd-4CF"/>
                             <constraint firstItem="9za-vG-ihA" firstAttribute="top" secondItem="qjn-Az-nK1" secondAttribute="bottom" constant="66" id="agw-2V-YyY"/>
-                            <constraint firstItem="eqj-Xy-OX5" firstAttribute="leading" secondItem="wc3-Ma-X7s" secondAttribute="leading" constant="8" id="b5o-0P-XZb"/>
+                            <constraint firstItem="eqj-Xy-OX5" firstAttribute="leading" secondItem="wc3-Ma-X7s" secondAttribute="leading" id="b5o-0P-XZb"/>
                             <constraint firstItem="3AP-7h-Nfc" firstAttribute="leading" secondItem="wc3-Ma-X7s" secondAttribute="leading" constant="16" id="bxW-A6-7ur"/>
                             <constraint firstAttribute="trailing" secondItem="9za-vG-ihA" secondAttribute="trailing" constant="16" id="guW-jF-VVi"/>
                             <constraint firstItem="6yW-By-Sg9" firstAttribute="leading" secondItem="wc3-Ma-X7s" secondAttribute="leading" id="hFm-HD-mvX"/>

+ 1 - 0
PDF Office/PDF Master/Class/PDFWindowController/Side/RightSide/EditPDF/View/AlignmentView/KMEditPropertyAlignmentView.swift

@@ -48,6 +48,7 @@ class KMEditPropertyAlignmentView: KMBaseXibView {
     }
     
     override func setup() {
+        self.alignmentLabel.stringValue = NSLocalizedString("Align", comment: "")
         alignmentLabel.font = NSFont.SFProTextSemiboldFont(12.0)
         alignmentLabel.textColor = NSColor.km_init(hex: "#616469")