Browse Source

【工具栏】UI调整

tangchao 9 months ago
parent
commit
f57692e5e5

+ 3 - 0
PDF Office/PDF Master/Class/PDFWindowController/Toolbar/Controller/KMToolbarConfigViewController.swift

@@ -179,6 +179,9 @@ extension KMToolbarConfigViewController: NSCollectionViewDelegate, NSCollectionV
     
     // 横向间距
     func collectionView(_ collectionView: NSCollectionView, layout collectionViewLayout: NSCollectionViewLayout, minimumInteritemSpacingForSectionAt section: Int) -> CGFloat {
+        if self.removedCollectionView.isEqual(to: collectionView) {
+            return 12
+        }
         return 5
     }
     

+ 3 - 3
PDF Office/PDF Master/Class/PDFWindowController/Toolbar/Controller/KMToolbarConfigViewController.xib

@@ -65,7 +65,7 @@
                                 <collectionViewFlowLayout key="collectionViewLayout" minimumInteritemSpacing="10" minimumLineSpacing="10" id="QkZ-GP-Y7n">
                                     <size key="itemSize" width="50" height="50"/>
                                 </collectionViewFlowLayout>
-                                <color key="primaryBackgroundColor" name="KM_DBDBDB_Color"/>
+                                <color key="primaryBackgroundColor" name="KM_EDECED_Color"/>
                             </collectionView>
                         </subviews>
                     </clipView>
@@ -145,8 +145,8 @@ DQ
         </customView>
     </objects>
     <resources>
-        <namedColor name="KM_DBDBDB_Color">
-            <color red="0.85900002717971802" green="0.85900002717971802" blue="0.85900002717971802" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
+        <namedColor name="KM_EDECED_Color">
+            <color red="0.92900002002716064" green="0.92500001192092896" blue="0.92900002002716064" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
         </namedColor>
     </resources>
 </document>