Browse Source

【fix】【测量】属性面板样式切换无效

tangchao 6 months ago
parent
commit
4371427457

+ 2 - 0
PDF Office/PDF Master/Class/PDFTools/Measure/Side/KMMeasureSideVC.swift

@@ -167,6 +167,8 @@ class KMMeasureSideVC: NSViewController {
         fontColorPickerView.annotationType = .freeTextColors
         fontColorPickerView.isCallColorPanelAction = true
         
+        self.typeView.isHidden = true
+        
         borderColorLabel.textColor = KMAppearance.Layout.h0Color()
         borderColorLabel.font = NSFont(descriptor: NSFontDescriptor(name: "Segoe UI", size: 14.0).withSymbolicTraits(.bold), size: 14.0) ?? NSFont(name: "Segoe UI", size: 14.0)
         fillColorLabel.textColor = KMAppearance.Layout.h0Color()

+ 6 - 6
PDF Office/PDF Master/Class/PDFTools/Measure/Side/KMMeasureSideVC.xib

@@ -74,10 +74,10 @@
                 <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                 <subviews>
                     <view translatesAutoresizingMaskIntoConstraints="NO" id="hrB-1R-XwJ">
-                        <rect key="frame" x="0.0" y="-119" width="481" height="780"/>
+                        <rect key="frame" x="0.0" y="-79" width="481" height="740"/>
                         <subviews>
                             <box boxType="custom" borderWidth="0.0" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="dV9-GQ-3pk">
-                                <rect key="frame" x="16" y="700" width="449" height="80"/>
+                                <rect key="frame" x="16" y="660" width="449" height="80"/>
                                 <view key="contentView" id="KK3-7C-TZH">
                                     <rect key="frame" x="0.0" y="0.0" width="449" height="80"/>
                                     <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
@@ -101,8 +101,8 @@
                                 </constraints>
                                 <color key="fillColor" red="0.99999600649999998" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                             </box>
-                            <customView translatesAutoresizingMaskIntoConstraints="NO" id="db4-tx-GKU">
-                                <rect key="frame" x="16" y="656" width="449" height="32"/>
+                            <customView hidden="YES" translatesAutoresizingMaskIntoConstraints="NO" id="db4-tx-GKU">
+                                <rect key="frame" x="16" y="616" width="449" height="32"/>
                                 <subviews>
                                     <customView translatesAutoresizingMaskIntoConstraints="NO" id="KJb-7Z-NB6">
                                         <rect key="frame" x="145" y="0.0" width="160" height="32"/>
@@ -792,7 +792,7 @@
                             <constraint firstAttribute="trailing" secondItem="stF-lk-Px9" secondAttribute="trailing" constant="16" id="KS5-QU-HNv"/>
                             <constraint firstItem="dV9-GQ-3pk" firstAttribute="leading" secondItem="hrB-1R-XwJ" secondAttribute="leading" constant="16" id="LAk-jB-MYG"/>
                             <constraint firstItem="Ylg-k5-0Xf" firstAttribute="top" secondItem="29n-Jr-QG2" secondAttribute="bottom" constant="10" id="MCz-Lz-HJ7"/>
-                            <constraint firstItem="29n-Jr-QG2" firstAttribute="top" secondItem="db4-tx-GKU" secondAttribute="bottom" constant="10" id="MS8-rx-0FM"/>
+                            <constraint firstItem="29n-Jr-QG2" firstAttribute="top" secondItem="db4-tx-GKU" secondAttribute="bottom" constant="-30" id="MS8-rx-0FM"/>
                             <constraint firstItem="dV9-GQ-3pk" firstAttribute="top" secondItem="hrB-1R-XwJ" secondAttribute="top" id="PnX-53-Iq2"/>
                             <constraint firstItem="sv1-ye-km4" firstAttribute="top" secondItem="stF-lk-Px9" secondAttribute="bottom" id="RRD-Xh-eZ3"/>
                             <constraint firstAttribute="trailing" secondItem="mVw-xI-3mn" secondAttribute="trailing" constant="16" id="XPo-jK-fub"/>
@@ -826,7 +826,7 @@
                 <rect key="frame" x="-100" y="-100" width="303" height="15"/>
                 <autoresizingMask key="autoresizingMask"/>
             </scroller>
-            <scroller key="verticalScroller" wantsLayer="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="NO" id="GYX-OK-zPd">
+            <scroller key="verticalScroller" wantsLayer="YES" verticalHuggingPriority="750" horizontal="NO" id="GYX-OK-zPd">
                 <rect key="frame" x="465" y="0.0" width="16" height="661"/>
                 <autoresizingMask key="autoresizingMask"/>
             </scroller>