瀏覽代碼

new rename view

marinofaggiana 4 年之前
父節點
當前提交
fc5a533042
共有 1 個文件被更改,包括 9 次插入22 次删除
  1. 9 22
      iOSClient/Main/Rename file/NCRenameFile.swift

+ 9 - 22
iOSClient/Main/Rename file/NCRenameFile.swift

@@ -61,31 +61,18 @@ class NCRenameFile: UIViewController {
         separatorHeightContraint.constant = 0.3
         
         cancelButton.setTitle(NSLocalizedString("_cancel_", comment: ""), for: .normal)
-        cancelButton.setTitleColor(.white, for: .normal)
+        cancelButton.setTitleColor(.gray, for: .normal)
         cancelButton.layer.cornerRadius = 15
         cancelButton.layer.masksToBounds = true
-        cancelButton.layer.backgroundColor = UIColor.gray.cgColor
+        cancelButton.layer.backgroundColor =  NCBrandColor.shared.graySoft.withAlphaComponent(0.1).cgColor
+        cancelButton.layer.borderWidth = 0.3
+        cancelButton.layer.borderColor = UIColor.gray.cgColor
         
-        /*
-        
-         cell.primary.isEnabled = false
-         cell.primary.isHidden = true
-         cell.primary.titleLabel?.font = .systemFont(ofSize: 14)
-         cell.primary.setTitleColor(.white, for: .normal)
-         cell.primary.layer.cornerRadius = 15
-         cell.primary.layer.masksToBounds = true
-         cell.primary.layer.backgroundColor = NCBrandColor.shared.brandElement.cgColor
-         
-         cell.secondary.isEnabled = false
-         cell.secondary.isHidden = true
-         cell.secondary.titleLabel?.font = .systemFont(ofSize: 14)
-         cell.secondary.setTitleColor(.gray, for: .normal)
-         cell.secondary.layer.cornerRadius = 15
-         cell.secondary.layer.masksToBounds = true
-         cell.secondary.layer.backgroundColor = NCBrandColor.shared.graySoft.withAlphaComponent(0.1).cgColor
-         cell.secondary.layer.borderWidth = 0.3
-         cell.secondary.layer.borderColor = UIColor.gray.cgColor
-         */
+        renameButton.setTitle(NSLocalizedString("_rename_", comment: ""), for: .normal)
+        renameButton.setTitleColor(NCBrandColor.shared.brandText, for: .normal)
+        renameButton.layer.cornerRadius = 15
+        renameButton.layer.masksToBounds = true
+        renameButton.layer.backgroundColor = NCBrandColor.shared.brand.cgColor
     }
     
     override func viewDidAppear(_ animated: Bool) {