Marino Faggiana 6 жил өмнө
parent
commit
2bf1c8d1ee

+ 12 - 0
iOSClient/Trash/NCTrash.storyboard

@@ -39,13 +39,25 @@
                                                 <constraint firstAttribute="width" constant="26" id="9NZ-3O-HHt"/>
                                             </constraints>
                                         </imageView>
+                                        <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="hva-qI-4Kl" userLabel="Separator">
+                                            <rect key="frame" x="0.0" y="29" width="375" height="1"/>
+                                            <color key="backgroundColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
+                                            <color key="tintColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
+                                            <constraints>
+                                                <constraint firstAttribute="height" constant="1" id="5Wf-y6-RCg"/>
+                                            </constraints>
+                                        </view>
                                     </subviews>
                                     <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                                     <constraints>
                                         <constraint firstAttribute="trailing" secondItem="2CA-s4-Jqg" secondAttribute="trailing" constant="17" id="MqZ-eT-w2f"/>
+                                        <constraint firstAttribute="trailing" secondItem="hva-qI-4Kl" secondAttribute="trailing" id="Nq8-X5-7Cq"/>
+                                        <constraint firstItem="hva-qI-4Kl" firstAttribute="leading" secondItem="AQ6-rS-Wxb" secondAttribute="leading" id="a0G-P5-ZTU"/>
+                                        <constraint firstAttribute="bottom" secondItem="hva-qI-4Kl" secondAttribute="bottom" id="ixp-nm-HUt"/>
                                         <constraint firstItem="2CA-s4-Jqg" firstAttribute="centerY" secondItem="AQ6-rS-Wxb" secondAttribute="centerY" id="xmf-F2-GEE"/>
                                     </constraints>
                                     <connections>
+                                        <outlet property="separator" destination="hva-qI-4Kl" id="3Zy-ap-3kf"/>
                                         <outlet property="tapMore" destination="2CA-s4-Jqg" id="ZrC-Kw-hzQ"/>
                                     </connections>
                                 </collectionReusableView>

+ 4 - 1
iOSClient/Trash/NCTrashHeader.swift

@@ -11,12 +11,15 @@ import Foundation
 class NCTrashHeader: UICollectionReusableView {
     
     @IBOutlet weak var tapMore: UIImageView!
-
+    @IBOutlet weak var separator: UIView!
+    
     override func awakeFromNib() {
         super.awakeFromNib()
         
         tapMore.image = CCGraphics.changeThemingColorImage(UIImage.init(named: "trashMore"), multiplier: 2, color: NCBrandColor.sharedInstance.optionItem)
         
+        separator.backgroundColor = NCBrandColor.sharedInstance.seperator
+        
         let tapGestureMore = UITapGestureRecognizer(target: self, action: #selector(NCTrashHeader.tapMore(sender:)))
         addGestureRecognizer(tapGestureMore)
         tapGestureMore.numberOfTapsRequired = 1

+ 1 - 0
iOSClient/Trash/NCTrashListCell.swift

@@ -34,6 +34,7 @@ class NCTrashListCell: UICollectionViewCell {
        
         restore.image = CCGraphics.changeThemingColorImage(UIImage.init(named: "trashRestore"), multiplier: 2, color: NCBrandColor.sharedInstance.optionItem)
         more.image = CCGraphics.changeThemingColorImage(UIImage.init(named: "trashMore"), multiplier: 2, color: NCBrandColor.sharedInstance.optionItem)
+        
         separator.backgroundColor = NCBrandColor.sharedInstance.seperator
         
         let tapGestureRestore = UITapGestureRecognizer(target: self, action: #selector(NCTrashListCell.tapRestore(sender:)))