|
@@ -83,74 +83,74 @@ class NCCapabilitiesViewController: UIViewController, UIDocumentInteractionContr
|
|
|
self.navigationItem.leftBarButtonItem = UIBarButtonItem(title: NSLocalizedString("_done_", comment: ""), style: UIBarButtonItem.Style.plain, target: self, action: #selector(close))
|
|
|
|
|
|
textView.layer.cornerRadius = 15
|
|
|
- textView.backgroundColor = NCBrandColor.shared.graySoft
|
|
|
+ textView.layer.masksToBounds = true
|
|
|
|
|
|
statusFileSharing.layer.cornerRadius = 12.5
|
|
|
statusFileSharing.layer.borderWidth = 0.5
|
|
|
statusFileSharing.layer.borderColor = UIColor.gray.cgColor
|
|
|
- statusFileSharing.layer.backgroundColor = NCBrandColor.shared.graySoft.withAlphaComponent(0.3).cgColor
|
|
|
-
|
|
|
+ statusFileSharing.layer.masksToBounds = true
|
|
|
+
|
|
|
statusExternalSite.layer.cornerRadius = 12.5
|
|
|
statusExternalSite.layer.borderWidth = 0.5
|
|
|
statusExternalSite.layer.borderColor = UIColor.gray.cgColor
|
|
|
- statusExternalSite.layer.backgroundColor = NCBrandColor.shared.graySoft.withAlphaComponent(0.3).cgColor
|
|
|
-
|
|
|
+ statusExternalSite.layer.masksToBounds = true
|
|
|
+
|
|
|
statusEndToEndEncryption.layer.cornerRadius = 12.5
|
|
|
statusEndToEndEncryption.layer.borderWidth = 0.5
|
|
|
statusEndToEndEncryption.layer.borderColor = UIColor.gray.cgColor
|
|
|
- statusEndToEndEncryption.layer.backgroundColor = NCBrandColor.shared.graySoft.withAlphaComponent(0.3).cgColor
|
|
|
-
|
|
|
+ statusEndToEndEncryption.layer.masksToBounds = true
|
|
|
+
|
|
|
statusActivity.layer.cornerRadius = 12.5
|
|
|
statusActivity.layer.borderWidth = 0.5
|
|
|
statusActivity.layer.borderColor = UIColor.gray.cgColor
|
|
|
- statusActivity.layer.backgroundColor = NCBrandColor.shared.graySoft.withAlphaComponent(0.3).cgColor
|
|
|
-
|
|
|
+ statusActivity.layer.masksToBounds = true
|
|
|
+
|
|
|
statusNotification.layer.cornerRadius = 12.5
|
|
|
statusNotification.layer.borderWidth = 0.5
|
|
|
statusNotification.layer.borderColor = UIColor.gray.cgColor
|
|
|
- statusNotification.layer.backgroundColor = NCBrandColor.shared.graySoft.withAlphaComponent(0.3).cgColor
|
|
|
-
|
|
|
+ statusNotification.layer.masksToBounds = true
|
|
|
+
|
|
|
statusDeletedFiles.layer.cornerRadius = 12.5
|
|
|
statusDeletedFiles.layer.borderWidth = 0.5
|
|
|
statusDeletedFiles.layer.borderColor = UIColor.gray.cgColor
|
|
|
- statusDeletedFiles.layer.backgroundColor = NCBrandColor.shared.graySoft.withAlphaComponent(0.3).cgColor
|
|
|
-
|
|
|
+ statusDeletedFiles.layer.masksToBounds = true
|
|
|
+
|
|
|
statusText.layer.cornerRadius = 12.5
|
|
|
statusText.layer.borderWidth = 0.5
|
|
|
statusText.layer.borderColor = UIColor.gray.cgColor
|
|
|
- statusText.layer.backgroundColor = NCBrandColor.shared.graySoft.withAlphaComponent(0.3).cgColor
|
|
|
+ statusText.layer.masksToBounds = true
|
|
|
|
|
|
statusCollabora.layer.cornerRadius = 12.5
|
|
|
statusCollabora.layer.borderWidth = 0.5
|
|
|
statusCollabora.layer.borderColor = UIColor.gray.cgColor
|
|
|
- statusCollabora.layer.backgroundColor = NCBrandColor.shared.graySoft.withAlphaComponent(0.3).cgColor
|
|
|
-
|
|
|
+ statusCollabora.layer.masksToBounds = true
|
|
|
+
|
|
|
statusOnlyOffice.layer.cornerRadius = 12.5
|
|
|
statusOnlyOffice.layer.borderWidth = 0.5
|
|
|
statusOnlyOffice.layer.borderColor = UIColor.gray.cgColor
|
|
|
- statusOnlyOffice.layer.backgroundColor = NCBrandColor.shared.graySoft.withAlphaComponent(0.3).cgColor
|
|
|
-
|
|
|
+ statusOnlyOffice.layer.masksToBounds = true
|
|
|
+
|
|
|
statusUserStatus.layer.cornerRadius = 12.5
|
|
|
statusUserStatus.layer.borderWidth = 0.5
|
|
|
statusUserStatus.layer.borderColor = UIColor.gray.cgColor
|
|
|
- statusUserStatus.layer.backgroundColor = NCBrandColor.shared.graySoft.withAlphaComponent(0.3).cgColor
|
|
|
-
|
|
|
+ statusUserStatus.layer.masksToBounds = true
|
|
|
+
|
|
|
statusComments.layer.cornerRadius = 12.5
|
|
|
statusComments.layer.borderWidth = 0.5
|
|
|
statusComments.layer.borderColor = UIColor.gray.cgColor
|
|
|
- statusComments.layer.backgroundColor = NCBrandColor.shared.graySoft.withAlphaComponent(0.3).cgColor
|
|
|
-
|
|
|
- imageFileSharing.image = UIImage.init(named: "share")!.image(color: .gray, size: 50)
|
|
|
- imageExternalSite.image = NCUtility.shared.loadImage(named: "network", color: .gray)
|
|
|
- imageEndToEndEncryption.image = NCUtility.shared.loadImage(named: "lock", color: .gray)
|
|
|
- imageActivity.image = UIImage.init(named: "bolt")!.image(color: .gray, size: 50)
|
|
|
- imageNotification.image = NCUtility.shared.loadImage(named: "bell", color: .gray)
|
|
|
- imageDeletedFiles.image = NCUtility.shared.loadImage(named: "trash", color: .gray)
|
|
|
- imageText.image = UIImage.init(named: "text")!.image(color: .gray, size: 50)
|
|
|
- imageCollabora.image = UIImage.init(named: "collabora")!.image(color: .gray, size: 50)
|
|
|
- imageOnlyOffice.image = UIImage.init(named: "onlyoffice")!.image(color: .gray, size: 50)
|
|
|
- imageUserStatus.image = UIImage.init(named: "userStatusAway")!.image(color: .gray, size: 50)
|
|
|
- imageComments.image = UIImage.init(named: "comments")!.image(color: .gray, size: 50)
|
|
|
+ statusComments.layer.masksToBounds = true
|
|
|
+
|
|
|
+ imageFileSharing.image = UIImage.init(named: "share")!.image(color: NCBrandColor.shared.gray, size: 50)
|
|
|
+ imageExternalSite.image = NCUtility.shared.loadImage(named: "network", color: NCBrandColor.shared.gray)
|
|
|
+ imageEndToEndEncryption.image = NCUtility.shared.loadImage(named: "lock", color: NCBrandColor.shared.gray)
|
|
|
+ imageActivity.image = UIImage.init(named: "bolt")!.image(color: NCBrandColor.shared.gray, size: 50)
|
|
|
+ imageNotification.image = NCUtility.shared.loadImage(named: "bell", color: NCBrandColor.shared.gray)
|
|
|
+ imageDeletedFiles.image = NCUtility.shared.loadImage(named: "trash", color: NCBrandColor.shared.gray)
|
|
|
+ imageText.image = UIImage.init(named: "text")!.image(color: NCBrandColor.shared.gray, size: 50)
|
|
|
+ imageCollabora.image = UIImage.init(named: "collabora")!.image(color: NCBrandColor.shared.gray, size: 50)
|
|
|
+ imageOnlyOffice.image = UIImage.init(named: "onlyoffice")!.image(color: NCBrandColor.shared.gray, size: 50)
|
|
|
+ imageUserStatus.image = UIImage.init(named: "userStatusAway")!.image(color: NCBrandColor.shared.gray, size: 50)
|
|
|
+ imageComments.image = UIImage.init(named: "comments")!.image(color: NCBrandColor.shared.gray, size: 50)
|
|
|
|
|
|
guard let activeAccount = NCManageDatabase.shared.getActiveAccount() else { return }
|
|
|
self.account = activeAccount.account
|
|
@@ -166,10 +166,10 @@ class NCCapabilitiesViewController: UIViewController, UIDocumentInteractionContr
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- homeImage.image = UIImage.init(named: "home")!.image(color: .gray, size: 50)
|
|
|
+ homeImage.image = UIImage.init(named: "home")!.image(color: NCBrandColor.shared.gray, size: 50)
|
|
|
homeServer.text = NCUtilityFileSystem.shared.getHomeServer(urlBase: appDelegate.urlBase, account: appDelegate.account) + "/"
|
|
|
|
|
|
- davImage.image = UIImage.init(named: "dav")!.image(color: .gray, size: 50)
|
|
|
+ davImage.image = UIImage.init(named: "dav")!.image(color: NCBrandColor.shared.gray, size: 50)
|
|
|
davFiles.text = appDelegate.urlBase + "/" + NCUtilityFileSystem.shared.getDAV() + "/files/" + appDelegate.user + "/"
|
|
|
}
|
|
|
|