|
@@ -90,9 +90,10 @@ class NCCreateFormUploadAssets: XLFormViewController, NCSelectDelegate, PhotoEdi
|
|
|
|
|
|
row = XLFormRowDescriptor(tag: "ButtonPhotoEditor", rowType: XLFormRowDescriptorTypeButton, title: NSLocalizedString("_modify_photo_", comment: ""))
|
|
|
row.action.formSelector = #selector(photoEditor(_:))
|
|
|
+ row.cellConfig["backgroundColor"] = NCBrandColor.sharedInstance.backgroundView
|
|
|
|
|
|
row.cellConfig["imageView.image"] = self.imagePreview
|
|
|
- row.cellConfig["textLabel.textColor"] = UIColor.black
|
|
|
+ row.cellConfig["textLabel.textColor"] = NCBrandColor.sharedInstance.textView
|
|
|
row.cellConfig["textLabel.textAlignment"] = NSTextAlignment.right.rawValue
|
|
|
row.cellConfig["textLabel.font"] = UIFont.systemFont(ofSize: 15.0)
|
|
|
|
|
@@ -106,12 +107,12 @@ class NCCreateFormUploadAssets: XLFormViewController, NCSelectDelegate, PhotoEdi
|
|
|
|
|
|
row = XLFormRowDescriptor(tag: "ButtonDestinationFolder", rowType: XLFormRowDescriptorTypeButton, title: self.titleServerUrl)
|
|
|
row.action.formSelector = #selector(changeDestinationFolder(_:))
|
|
|
-
|
|
|
+ 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)
|
|
|
|
|
@@ -120,6 +121,7 @@ class NCCreateFormUploadAssets: XLFormViewController, NCSelectDelegate, PhotoEdi
|
|
|
row.value = 0
|
|
|
|
|
|
row.cellConfig["textLabel.font"] = UIFont.systemFont(ofSize: 15.0)
|
|
|
+ row.cellConfig["textLabel.textColor"] = NCBrandColor.sharedInstance.textView
|
|
|
|
|
|
section.addFormRow(row)
|
|
|
|
|
@@ -134,6 +136,7 @@ class NCCreateFormUploadAssets: XLFormViewController, NCSelectDelegate, PhotoEdi
|
|
|
row.hidden = "$\("useFolderAutoUpload") == 0"
|
|
|
|
|
|
row.cellConfig["textLabel.font"] = UIFont.systemFont(ofSize: 15.0)
|
|
|
+ row.cellConfig["textLabel.textColor"] = NCBrandColor.sharedInstance.textView
|
|
|
|
|
|
section.addFormRow(row)
|
|
|
|
|
@@ -146,8 +149,10 @@ class NCCreateFormUploadAssets: XLFormViewController, NCSelectDelegate, PhotoEdi
|
|
|
|
|
|
row = XLFormRowDescriptor(tag: "maintainOriginalFileName", rowType: XLFormRowDescriptorTypeBooleanSwitch, title: NSLocalizedString("_maintain_original_filename_", comment: ""))
|
|
|
row.value = CCUtility.getOriginalFileName(k_keyFileNameOriginal)
|
|
|
-
|
|
|
+ row.cellConfig["backgroundColor"] = NCBrandColor.sharedInstance.backgroundView
|
|
|
+
|
|
|
row.cellConfig["textLabel.font"] = UIFont.systemFont(ofSize: 15.0)
|
|
|
+ row.cellConfig["textLabel.textColor"] = NCBrandColor.sharedInstance.textView
|
|
|
|
|
|
section.addFormRow(row)
|
|
|
|
|
@@ -156,8 +161,10 @@ class NCCreateFormUploadAssets: XLFormViewController, NCSelectDelegate, PhotoEdi
|
|
|
row = XLFormRowDescriptor(tag: "addFileNameType", rowType: XLFormRowDescriptorTypeBooleanSwitch, title: NSLocalizedString("_add_filenametype_", comment: ""))
|
|
|
row.value = CCUtility.getFileNameType(k_keyFileNameType)
|
|
|
row.hidden = "$\("maintainOriginalFileName") == 1"
|
|
|
-
|
|
|
+ row.cellConfig["backgroundColor"] = NCBrandColor.sharedInstance.backgroundView
|
|
|
+
|
|
|
row.cellConfig["textLabel.font"] = UIFont.systemFont(ofSize: 15.0)
|
|
|
+ row.cellConfig["textLabel.textColor"] = NCBrandColor.sharedInstance.textView
|
|
|
|
|
|
section.addFormRow(row)
|
|
|
|
|
@@ -172,12 +179,15 @@ class NCCreateFormUploadAssets: XLFormViewController, NCSelectDelegate, PhotoEdi
|
|
|
row.value = fileNameMask
|
|
|
}
|
|
|
row.hidden = "$\("maintainOriginalFileName") == 1"
|
|
|
-
|
|
|
+ row.cellConfig["backgroundColor"] = NCBrandColor.sharedInstance.backgroundView
|
|
|
+
|
|
|
row.cellConfig["textLabel.font"] = UIFont.systemFont(ofSize: 15.0)
|
|
|
+ row.cellConfig["textLabel.textColor"] = NCBrandColor.sharedInstance.textView
|
|
|
|
|
|
row.cellConfig["textField.textAlignment"] = NSTextAlignment.right.rawValue
|
|
|
row.cellConfig["textField.font"] = UIFont.systemFont(ofSize: 15.0)
|
|
|
-
|
|
|
+ row.cellConfig["textField.textColor"] = NCBrandColor.sharedInstance.textView
|
|
|
+
|
|
|
section.addFormRow(row)
|
|
|
|
|
|
|
|
@@ -185,10 +195,12 @@ class NCCreateFormUploadAssets: XLFormViewController, NCSelectDelegate, PhotoEdi
|
|
|
row = XLFormRowDescriptor(tag: "previewFileName", rowType: XLFormRowDescriptorTypeTextView, title: "")
|
|
|
row.height = 180
|
|
|
row.disabled = true
|
|
|
-
|
|
|
- row.cellConfig["textView.backgroundColor"] = NCBrandColor.sharedInstance.backgroundView
|
|
|
+ row.cellConfig["backgroundColor"] = NCBrandColor.sharedInstance.backgroundView
|
|
|
+
|
|
|
+ row.cellConfig["textView.backgroundColor"] = NCBrandColor.sharedInstance.backgroundForm
|
|
|
row.cellConfig["textView.font"] = UIFont.systemFont(ofSize: 14.0)
|
|
|
-
|
|
|
+ row.cellConfig["textView.textColor"] = NCBrandColor.sharedInstance.textView
|
|
|
+
|
|
|
section.addFormRow(row)
|
|
|
|
|
|
self.form = form
|
|
@@ -275,6 +287,7 @@ class NCCreateFormUploadAssets: XLFormViewController, NCSelectDelegate, PhotoEdi
|
|
|
self.navigationController?.navigationBar.titleTextAttributes = [NSAttributedString.Key.foregroundColor: NCBrandColor.sharedInstance.brandText]
|
|
|
|
|
|
self.tableView.separatorStyle = UITableViewCell.SeparatorStyle.none
|
|
|
+ self.tableView.backgroundColor = NCBrandColor.sharedInstance.backgroundForm
|
|
|
|
|
|
self.reloadForm()
|
|
|
}
|