Pārlūkot izejas kodu

improved GUI

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 gadi atpakaļ
vecāks
revīzija
49814bb2c4

+ 5 - 1
iOSClient/Main/Create cloud/NCCreateFormUploadConflict.swift

@@ -99,7 +99,9 @@ extension NCCreateFormUploadConflictDelegate {
             labelAlreadyExistingFiles.text = NSLocalizedString("_file_conflict_exists_", comment: "")
         }
 
+        switchNewFiles.onTintColor = NCBrandColor.shared.brand
         switchNewFiles.isOn = false
+        switchAlreadyExistingFiles.onTintColor = NCBrandColor.shared.brand
         switchAlreadyExistingFiles.isOn = false
 
         buttonCancel.layer.cornerRadius = 20
@@ -308,7 +310,9 @@ extension NCCreateFormUploadConflict: UITableViewDataSource {
         if let cell = tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath) as? NCCreateFormUploadConflictCell {
 
             cell.backgroundColor = tableView.backgroundColor
-
+            cell.switchNewFile.onTintColor = NCBrandColor.shared.brand
+            cell.switchAlreadyExistingFile.onTintColor = NCBrandColor.shared.brand
+            
             let metadataNewFile =  tableMetadata.init(value: metadatasUploadInConflict[indexPath.row])
 
             cell.ocId = metadataNewFile.ocId

+ 0 - 1
iOSClient/Main/Create cloud/NCCreateFormUploadConflictCell.swift

@@ -52,5 +52,4 @@ protocol NCCreateFormUploadConflictCellDelegate: AnyObject {
 
     func valueChangedSwitchNewFile(with ocId: String, isOn: Bool)
     func valueChangedSwitchAlreadyExistingFile(with ocId: String, isOn: Bool)
-
 }