Browse Source

coding

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 years ago
parent
commit
39223382fd

+ 3 - 3
iOSClient/Color/NCColorPicker.storyboard

@@ -98,7 +98,7 @@
                                 </constraints>
                                 <inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
                                 <connections>
-                                    <action selector="blackButtonAction:" destination="Y6W-OH-hqX" eventType="touchUpInside" id="M8N-Pu-LSN"/>
+                                    <action selector="brownButtonAction:" destination="Y6W-OH-hqX" eventType="touchUpInside" id="AH7-Kr-g9S"/>
                                 </connections>
                             </button>
                             <label opaque="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="l8h-Ix-MAy">
@@ -208,10 +208,10 @@
                         </constraints>
                     </view>
                     <connections>
-                        <outlet property="blackButton" destination="I9w-cx-QlY" id="lB1-aF-eee"/>
-                        <outlet property="blackLabel" destination="l8h-Ix-MAy" id="RoI-0K-JDW"/>
                         <outlet property="blueButton" destination="C2a-jB-FVB" id="lIY-Ag-Nkv"/>
                         <outlet property="blueLabel" destination="Bju-3l-U4U" id="SoS-he-ZYH"/>
+                        <outlet property="brownButton" destination="I9w-cx-QlY" id="b8T-np-0mw"/>
+                        <outlet property="brownLabel" destination="l8h-Ix-MAy" id="hLk-hf-tcf"/>
                         <outlet property="defaultButton" destination="Uaq-hC-U4a" id="t6X-aV-hPF"/>
                         <outlet property="defaultLabel" destination="AVl-ZW-qt0" id="Pdd-bQ-cNT"/>
                         <outlet property="grayButton" destination="LwF-26-oss" id="lzV-jY-LNd"/>

+ 10 - 10
iOSClient/Color/NCColorPicker.swift

@@ -15,7 +15,7 @@ class NCColorPicker: UIViewController {
     @IBOutlet weak var redButton: UIButton!
     @IBOutlet weak var purpleButton: UIButton!
     @IBOutlet weak var blueButton: UIButton!
-    @IBOutlet weak var blackButton: UIButton!
+    @IBOutlet weak var brownButton: UIButton!
     @IBOutlet weak var greenButton: UIButton!
     @IBOutlet weak var grayButton: UIButton!
     @IBOutlet weak var defaultButton: UIButton!
@@ -24,7 +24,7 @@ class NCColorPicker: UIViewController {
     @IBOutlet weak var redLabel: UILabel!
     @IBOutlet weak var purpleLabel: UILabel!
     @IBOutlet weak var blueLabel: UILabel!
-    @IBOutlet weak var blackLabel: UILabel!
+    @IBOutlet weak var brownLabel: UILabel!
     @IBOutlet weak var greenLabel: UILabel!
     @IBOutlet weak var grayLabel: UILabel!
     @IBOutlet weak var defaultLabel: UILabel!
@@ -65,12 +65,12 @@ class NCColorPicker: UIViewController {
         let blueLabelTapAction = UITapGestureRecognizer(target: self, action: #selector(blueButtonAction(_:)))
         blueLabel?.addGestureRecognizer(blueLabelTapAction)
 
-        blackButton.backgroundColor = .black
-        blackButton.layer.cornerRadius = 5
-        blackButton.layer.masksToBounds = true
-        blackLabel.text = NSLocalizedString("_black_", comment: "")
-        let blackLabelTapAction = UITapGestureRecognizer(target: self, action: #selector(blackButtonAction(_:)))
-        blackLabel?.addGestureRecognizer(blackLabelTapAction)
+        brownButton.backgroundColor = .brown
+        brownButton.layer.cornerRadius = 5
+        brownButton.layer.masksToBounds = true
+        brownLabel.text = NSLocalizedString("_brown_", comment: "")
+        let brownLabelTapAction = UITapGestureRecognizer(target: self, action: #selector(brownButtonAction(_:)))
+        brownLabel?.addGestureRecognizer(brownLabelTapAction)
 
         greenButton.backgroundColor = .green
         greenButton.layer.cornerRadius = 5
@@ -110,8 +110,8 @@ class NCColorPicker: UIViewController {
         updateColor(hexColor: UIColor.blue.hexString)
     }
 
-    @IBAction func blackButtonAction(_ sender: AnyObject) {
-        updateColor(hexColor: UIColor.black.hexString)
+    @IBAction func brownButtonAction(_ sender: AnyObject) {
+        updateColor(hexColor: UIColor.brown.hexString)
     }
 
     @IBAction func greenButtonAction(_ sender: AnyObject) {

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

@@ -881,7 +881,7 @@
 "_red_"                     = "Red";
 "_purple_"                  = "Purple";
 "_blue_"                    = "Blue";
-"_black_"                   = "Black";
+"_brown_"                   = "Brown";
 "_green_"                   = "Green";
 "_gray_"                    = "Gray";
 "_default_"                 = "Default";