|
@@ -60,6 +60,10 @@ class NCCreateFormUploadRichdocuments: XLFormViewController, NCSelectDelegate, U
|
|
|
}
|
|
|
|
|
|
self.tableView.separatorStyle = UITableViewCell.SeparatorStyle.none
|
|
|
+ self.tableView.backgroundColor = NCBrandColor.sharedInstance.backgroundForm
|
|
|
+
|
|
|
+ self.view.backgroundColor = NCBrandColor.sharedInstance.backgroundForm
|
|
|
+ self.collectionView.backgroundColor = NCBrandColor.sharedInstance.backgroundForm
|
|
|
|
|
|
let cancelButton : UIBarButtonItem = UIBarButtonItem(title: NSLocalizedString("_cancel_", comment: ""), style: UIBarButtonItem.Style.plain, target: self, action: #selector(cancel))
|
|
|
let saveButton : UIBarButtonItem = UIBarButtonItem(title: NSLocalizedString("_save_", comment: ""), style: UIBarButtonItem.Style.plain, target: self, action: #selector(save))
|
|
@@ -102,13 +106,14 @@ class NCCreateFormUploadRichdocuments: XLFormViewController, NCSelectDelegate, U
|
|
|
row = XLFormRowDescriptor(tag: "ButtonDestinationFolder", rowType: XLFormRowDescriptorTypeButton, title: fileNameFolder)
|
|
|
row.action.formSelector = #selector(changeDestinationFolder(_:))
|
|
|
row.value = fileNameFolder
|
|
|
-
|
|
|
+ row.cellConfig["backgroundColor"] = NCBrandColor.sharedInstance.backgroundView
|
|
|
+
|
|
|
row.cellConfig["imageView.image"] = CCGraphics.changeThemingColorImage(UIImage(named: "folder")!, width: 50, height: 50, color: NCBrandColor.sharedInstance.brandElement) as UIImage
|
|
|
|
|
|
row.cellConfig["textLabel.textAlignment"] = NSTextAlignment.right.rawValue
|
|
|
row.cellConfig["textLabel.font"] = UIFont.systemFont(ofSize: 15.0)
|
|
|
- row.cellConfig["textLabel.textColor"] = UIColor.black
|
|
|
-
|
|
|
+ row.cellConfig["textLabel.textColor"] = NCBrandColor.sharedInstance.textView
|
|
|
+
|
|
|
section.addFormRow(row)
|
|
|
|
|
|
// Section: File Name
|
|
@@ -118,9 +123,11 @@ class NCCreateFormUploadRichdocuments: XLFormViewController, NCSelectDelegate, U
|
|
|
|
|
|
row = XLFormRowDescriptor(tag: "fileName", rowType: XLFormRowDescriptorTypeAccount, title: NSLocalizedString("_filename_", comment: ""))
|
|
|
row.value = fileName
|
|
|
+ row.cellConfig["backgroundColor"] = NCBrandColor.sharedInstance.backgroundView
|
|
|
|
|
|
row.cellConfig["textField.textAlignment"] = NSTextAlignment.right.rawValue
|
|
|
row.cellConfig["textField.font"] = UIFont.systemFont(ofSize: 15.0)
|
|
|
+ row.cellConfig["textLabel.textColor"] = NCBrandColor.sharedInstance.textView
|
|
|
|
|
|
section.addFormRow(row)
|
|
|
|
|
@@ -130,7 +137,8 @@ class NCCreateFormUploadRichdocuments: XLFormViewController, NCSelectDelegate, U
|
|
|
override func tableView(_ tableView: UITableView, willDisplayHeaderView view: UIView, forSection section: Int) {
|
|
|
let header: UITableViewHeaderFooterView = view as! UITableViewHeaderFooterView
|
|
|
header.textLabel?.font = UIFont.systemFont(ofSize: 13.0)
|
|
|
- header.textLabel?.textColor = NCBrandColor.sharedInstance.icon //UIColor.lightGray
|
|
|
+ header.textLabel?.textColor = NCBrandColor.sharedInstance.textView
|
|
|
+ header.tintColor = NCBrandColor.sharedInstance.backgroundForm
|
|
|
}
|
|
|
|
|
|
// MARK: - CollectionView
|
|
@@ -172,6 +180,8 @@ class NCCreateFormUploadRichdocuments: XLFormViewController, NCSelectDelegate, U
|
|
|
// name
|
|
|
let name = cell.viewWithTag(200) as! UILabel
|
|
|
name.text = template.name
|
|
|
+ name.backgroundColor = NCBrandColor.sharedInstance.backgroundForm
|
|
|
+ name.textColor = NCBrandColor.sharedInstance.textView
|
|
|
|
|
|
// select
|
|
|
let imageSelect = cell.viewWithTag(300) as! UIImageView
|