Kaynağa Gözat

improved share extension

marinofaggiana 3 yıl önce
ebeveyn
işleme
7edf36a667

+ 5 - 5
Share/MainInterface.storyboard

@@ -132,13 +132,13 @@
                                     <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="kHU-CI-3gI">
                                         <rect key="frame" x="10" y="300" width="394" height="50"/>
                                         <subviews>
-                                            <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="save files" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ka7-SC-ac5">
-                                                <rect key="frame" x="60" y="16.666666666666629" width="60" height="17"/>
-                                                <fontDescription key="fontDescription" type="system" pointSize="14"/>
+                                            <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="upload" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ka7-SC-ac5">
+                                                <rect key="frame" x="171" y="14.999999999999998" width="52" height="20.333333333333329"/>
+                                                <fontDescription key="fontDescription" type="system" pointSize="17"/>
                                                 <nil key="textColor"/>
                                                 <nil key="highlightedColor"/>
                                             </label>
-                                            <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Gok-do-ydQ">
+                                            <imageView hidden="YES" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Gok-do-ydQ">
                                                 <rect key="frame" x="15" y="10" width="30" height="30"/>
                                                 <constraints>
                                                     <constraint firstAttribute="height" constant="30" id="hof-u1-w4Q"/>
@@ -148,8 +148,8 @@
                                         </subviews>
                                         <color key="backgroundColor" systemColor="systemBackgroundColor"/>
                                         <constraints>
+                                            <constraint firstItem="ka7-SC-ac5" firstAttribute="centerX" secondItem="kHU-CI-3gI" secondAttribute="centerX" id="0xa-aH-g8H"/>
                                             <constraint firstItem="Gok-do-ydQ" firstAttribute="leading" secondItem="kHU-CI-3gI" secondAttribute="leading" constant="15" id="3bo-Wd-s5E"/>
-                                            <constraint firstItem="ka7-SC-ac5" firstAttribute="leading" secondItem="Gok-do-ydQ" secondAttribute="trailing" constant="15" id="3xZ-bD-ssD"/>
                                             <constraint firstAttribute="height" constant="50" id="6xq-PW-8Ay"/>
                                             <constraint firstItem="Gok-do-ydQ" firstAttribute="centerY" secondItem="kHU-CI-3gI" secondAttribute="centerY" id="P9O-Ts-odZ"/>
                                             <constraint firstItem="ka7-SC-ac5" firstAttribute="centerY" secondItem="kHU-CI-3gI" secondAttribute="centerY" id="u7t-cL-zFA"/>

+ 3 - 2
Share/NCShareExtension.swift

@@ -110,8 +110,9 @@ class NCShareExtension: UIViewController, NCListCellDelegate, NCEmptyDataSetDele
         
         // Upload
         uploadView.layer.cornerRadius = 10
-        uploadImage.image = NCUtility.shared.loadImage(named: "square.and.arrow.up", color: NCBrandColor.shared.label)
-        uploadLabel.text = NSLocalizedString("_save_files_", comment: "")
+        //uploadImage.image = NCUtility.shared.loadImage(named: "square.and.arrow.up", color: NCBrandColor.shared.label)
+        uploadLabel.text = NSLocalizedString("_upload_", comment: "")
+        uploadLabel.textColor = .systemBlue
         let uploadGesture = UITapGestureRecognizer(target: self, action:  #selector(actionUpload))
         uploadView.addGestureRecognizer(uploadGesture)
                 

+ 0 - 1
iOSClient/Supporting Files/en.lproj/Localizable.strings

@@ -172,7 +172,6 @@
 "_chunk_footer_title_"      = "Chunked file upload (0 is disabled)";
 "_privacy_"                 = "Privacy";
 "_source_code_"             = "Get source code";
-"_save_files_"              = "Save files";
 
 /* User status */
 "_online_"                  = "Online";