marinofaggiana 5 years ago
parent
commit
c75313b3bb

+ 8 - 8
iOSClient/Viewer/NCViewerImage/NCViewerImageVideo.storyboard

@@ -11,20 +11,20 @@
         <!--Viewer Image Video-->
         <scene sceneID="puT-XC-QL4">
             <objects>
-                <viewController id="Mmv-kq-uRN" customClass="NCViewerImageVideo" customModule="Nextcloud" customModuleProvider="target" sceneMemberID="viewController">
+                <viewController modalPresentationStyle="fullScreen" id="Mmv-kq-uRN" customClass="NCViewerImageVideo" customModule="Nextcloud" customModuleProvider="target" sceneMemberID="viewController">
                     <view key="view" contentMode="scaleToFill" id="ZUd-xF-jbc">
                         <rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
                         <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                         <subviews>
                             <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="U2u-Ng-quR">
-                                <rect key="frame" x="0.0" y="64" width="414" height="832"/>
+                                <rect key="frame" x="0.0" y="44" width="414" height="818"/>
                                 <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                             </view>
                             <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="oHy-h6-oBZ">
-                                <rect key="frame" x="8" y="5" width="45" height="30"/>
+                                <rect key="frame" x="8" y="10" width="45" height="26"/>
                                 <subviews>
                                     <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="QdX-GD-p2D">
-                                        <rect key="frame" x="11.5" y="4" width="22" height="22"/>
+                                        <rect key="frame" x="11.5" y="2" width="22" height="22"/>
                                         <constraints>
                                             <constraint firstAttribute="height" constant="22" id="dQc-qo-agC"/>
                                             <constraint firstAttribute="width" constant="22" id="xnb-gI-bEr"/>
@@ -38,18 +38,18 @@
                                 <constraints>
                                     <constraint firstItem="QdX-GD-p2D" firstAttribute="centerX" secondItem="oHy-h6-oBZ" secondAttribute="centerX" id="4aU-y2-eVX"/>
                                     <constraint firstItem="QdX-GD-p2D" firstAttribute="centerY" secondItem="oHy-h6-oBZ" secondAttribute="centerY" id="mBW-kE-lTZ"/>
-                                    <constraint firstAttribute="height" constant="30" id="qKQ-Gt-Qwc"/>
+                                    <constraint firstAttribute="height" constant="26" id="qKQ-Gt-Qwc"/>
                                     <constraint firstAttribute="width" constant="45" id="zII-t1-FVR"/>
                                 </constraints>
                             </view>
                         </subviews>
                         <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
                         <constraints>
-                            <constraint firstItem="U2u-Ng-quR" firstAttribute="top" secondItem="I8r-2q-gEp" secondAttribute="top" constant="20" id="JMx-LP-euj"/>
-                            <constraint firstAttribute="bottom" secondItem="U2u-Ng-quR" secondAttribute="bottom" id="OB5-oL-uWd"/>
+                            <constraint firstItem="U2u-Ng-quR" firstAttribute="top" secondItem="I8r-2q-gEp" secondAttribute="top" id="JMx-LP-euj"/>
+                            <constraint firstItem="I8r-2q-gEp" firstAttribute="bottom" secondItem="U2u-Ng-quR" secondAttribute="bottom" id="OB5-oL-uWd"/>
                             <constraint firstItem="oHy-h6-oBZ" firstAttribute="leading" secondItem="I8r-2q-gEp" secondAttribute="leading" constant="8" id="V0z-bW-qho"/>
                             <constraint firstAttribute="trailing" secondItem="U2u-Ng-quR" secondAttribute="trailing" id="fK9-2n-mIB"/>
-                            <constraint firstAttribute="top" secondItem="oHy-h6-oBZ" secondAttribute="top" constant="-5" id="lE8-hz-8Tq"/>
+                            <constraint firstAttribute="top" secondItem="oHy-h6-oBZ" secondAttribute="top" constant="-10" id="lE8-hz-8Tq"/>
                             <constraint firstItem="U2u-Ng-quR" firstAttribute="leading" secondItem="ZUd-xF-jbc" secondAttribute="leading" id="zBR-Jl-ZtK"/>
                         </constraints>
                         <viewLayoutGuide key="safeArea" id="I8r-2q-gEp"/>

+ 1 - 1
iOSClient/Viewer/NCViewerImage/NCViewerImageVideo.swift

@@ -42,7 +42,7 @@ class NCViewerImageVideo: UIViewController {
         
         view.backgroundColor = .black
         closeView.layer.cornerRadius = 5
-        closeButton.setImage(CCGraphics.changeThemingColorImage(UIImage(named: "exit"), width: 50, height: 50, color: .black), for: .normal)
+        closeButton.setImage(CCGraphics.changeThemingColorImage(UIImage(named: "exit"), width: 50, height: 50, color: .lightGray), for: .normal)
         
         let frame = CGRect(x: 0, y: 0, width: self.backgroundView.frame.width, height: self.backgroundView.frame.height)
         NCViewerMedia.sharedInstance.viewMedia(metadata, view: backgroundView, frame: frame)