|
@@ -84,13 +84,14 @@ class NCCreateFormUploadScanDocument: XLFormViewController, NCSelectDelegate {
|
|
|
|
|
|
row = XLFormRowDescriptor(tag: "ButtonDestinationFolder", rowType: XLFormRowDescriptorTypeButton, title: self.titleServerUrl)
|
|
|
row.action.formSelector = #selector(changeDestinationFolder(_:))
|
|
|
-
|
|
|
+ row.cellConfig["backgroundColor"] = NCBrandColor.sharedInstance.backgroundForm
|
|
|
+
|
|
|
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: Quality
|
|
@@ -101,7 +102,8 @@ class NCCreateFormUploadScanDocument: XLFormViewController, NCSelectDelegate {
|
|
|
row = XLFormRowDescriptor(tag: "compressionQuality", rowType: XLFormRowDescriptorTypeSlider)
|
|
|
row.value = 0.5
|
|
|
row.title = NSLocalizedString("_quality_medium_", comment: "")
|
|
|
-
|
|
|
+ row.cellConfig["backgroundColor"] = NCBrandColor.sharedInstance.backgroundForm
|
|
|
+
|
|
|
row.cellConfig["slider.minimumTrackTintColor"] = NCBrandColor.sharedInstance.brand
|
|
|
|
|
|
row.cellConfig["slider.maximumValue"] = 1
|
|
@@ -110,6 +112,7 @@ class NCCreateFormUploadScanDocument: XLFormViewController, NCSelectDelegate {
|
|
|
|
|
|
row.cellConfig["textLabel.textAlignment"] = NSTextAlignment.center.rawValue
|
|
|
row.cellConfig["textLabel.font"] = UIFont.systemFont(ofSize: 15.0)
|
|
|
+ row.cellConfig["textLabel.textColor"] = NCBrandColor.sharedInstance.textView
|
|
|
|
|
|
section.addFormRow(row)
|
|
|
|
|
@@ -119,11 +122,14 @@ class NCCreateFormUploadScanDocument: XLFormViewController, NCSelectDelegate {
|
|
|
form.addFormSection(section)
|
|
|
|
|
|
row = XLFormRowDescriptor(tag: "password", rowType: XLFormRowDescriptorTypePassword, title: NSLocalizedString("_password_", comment: ""))
|
|
|
-
|
|
|
+ row.cellConfig["backgroundColor"] = NCBrandColor.sharedInstance.backgroundForm
|
|
|
+
|
|
|
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)
|
|
|
|
|
@@ -136,10 +142,13 @@ class NCCreateFormUploadScanDocument: XLFormViewController, NCSelectDelegate {
|
|
|
|
|
|
row = XLFormRowDescriptor(tag: "textRecognition", rowType: XLFormRowDescriptorTypeBooleanSwitch, title: NSLocalizedString("_text_recognition_", comment: ""))
|
|
|
row.value = 0
|
|
|
-
|
|
|
+ row.cellConfig["backgroundColor"] = NCBrandColor.sharedInstance.backgroundForm
|
|
|
+
|
|
|
row.cellConfig["imageView.image"] = CCGraphics.changeThemingColorImage(UIImage(named: "textRecognition")!, width: 50, height: 50, color: NCBrandColor.sharedInstance.brandElement) as UIImage
|
|
|
+
|
|
|
row.cellConfig["textLabel.font"] = UIFont.systemFont(ofSize: 15.0)
|
|
|
-
|
|
|
+ row.cellConfig["textLabel.textColor"] = NCBrandColor.sharedInstance.textView
|
|
|
+
|
|
|
section.addFormRow(row)
|
|
|
#endif
|
|
|
|
|
@@ -149,28 +158,32 @@ class NCCreateFormUploadScanDocument: XLFormViewController, NCSelectDelegate {
|
|
|
form.addFormSection(section)
|
|
|
|
|
|
row = XLFormRowDescriptor(tag: "filetype", rowType: XLFormRowDescriptorTypeSelectorSegmentedControl, title: NSLocalizedString("_file_type_", comment: ""))
|
|
|
-
|
|
|
if arrayImages.count == 1 {
|
|
|
row.selectorOptions = ["PDF","JPG"]
|
|
|
} else {
|
|
|
row.selectorOptions = ["PDF"]
|
|
|
}
|
|
|
row.value = "PDF"
|
|
|
+ row.cellConfig["backgroundColor"] = NCBrandColor.sharedInstance.backgroundForm
|
|
|
|
|
|
row.cellConfig["tintColor"] = NCBrandColor.sharedInstance.brand
|
|
|
row.cellConfig["textLabel.font"] = UIFont.systemFont(ofSize: 15.0)
|
|
|
-
|
|
|
+ row.cellConfig["textLabel.textColor"] = NCBrandColor.sharedInstance.textView
|
|
|
+
|
|
|
section.addFormRow(row)
|
|
|
|
|
|
|
|
|
row = XLFormRowDescriptor(tag: "fileName", rowType: XLFormRowDescriptorTypeAccount, title: NSLocalizedString("_filename_", comment: ""))
|
|
|
row.value = self.fileName
|
|
|
-
|
|
|
+ row.cellConfig["backgroundColor"] = NCBrandColor.sharedInstance.backgroundForm
|
|
|
+
|
|
|
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)
|
|
|
|
|
|
self.form = form
|
|
@@ -336,6 +349,8 @@ class NCCreateFormUploadScanDocument: XLFormViewController, NCSelectDelegate {
|
|
|
self.navigationController?.navigationBar.titleTextAttributes = [NSAttributedString.Key.foregroundColor: NCBrandColor.sharedInstance.brandText]
|
|
|
|
|
|
self.tableView.separatorStyle = UITableViewCell.SeparatorStyle.none
|
|
|
+ self.tableView.backgroundColor = NCBrandColor.sharedInstance.backgroundForm
|
|
|
+
|
|
|
// self.tableView.sectionHeaderHeight = 10
|
|
|
// self.tableView.sectionFooterHeight = 10
|
|
|
// self.tableView.backgroundColor = NCBrandColor.sharedInstance.backgroundView
|