|
@@ -67,7 +67,6 @@ class NCShareComments: UIViewController, NCShareCommentsCellDelegate {
|
|
else{
|
|
else{
|
|
labelUser.text = tabAccount.displayName
|
|
labelUser.text = tabAccount.displayName
|
|
}
|
|
}
|
|
- labelUser.textColor = NCBrandColor.sharedInstance.textView
|
|
|
|
|
|
|
|
let fileNameLocalPath = CCUtility.getDirectoryUserData() + "/" + CCUtility.getStringUser(appDelegate.activeUser, activeUrl: appDelegate.activeUrl) + "-" + appDelegate.activeUser + ".png"
|
|
let fileNameLocalPath = CCUtility.getDirectoryUserData() + "/" + CCUtility.getStringUser(appDelegate.activeUser, activeUrl: appDelegate.activeUrl) + "-" + appDelegate.activeUser + ".png"
|
|
if FileManager.default.fileExists(atPath: fileNameLocalPath) {
|
|
if FileManager.default.fileExists(atPath: fileNameLocalPath) {
|
|
@@ -84,6 +83,10 @@ class NCShareComments: UIViewController, NCShareCommentsCellDelegate {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ // changeTheming
|
|
|
|
+ NotificationCenter.default.addObserver(self, selector: #selector(self.changeTheming), name: NSNotification.Name(rawValue: "changeTheming"), object: nil)
|
|
|
|
+ changeTheming()
|
|
}
|
|
}
|
|
|
|
|
|
override func viewWillAppear(_ animated: Bool) {
|
|
override func viewWillAppear(_ animated: Bool) {
|
|
@@ -92,6 +95,12 @@ class NCShareComments: UIViewController, NCShareCommentsCellDelegate {
|
|
reloadData()
|
|
reloadData()
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @objc func changeTheming() {
|
|
|
|
+ appDelegate.changeTheming(self, tableView: tableView, collectionView: nil)
|
|
|
|
+
|
|
|
|
+ labelUser.textColor = NCBrandColor.sharedInstance.textView
|
|
|
|
+ }
|
|
|
|
+
|
|
@objc func reloadData() {
|
|
@objc func reloadData() {
|
|
|
|
|
|
guard let metadata = self.metadata else { return }
|
|
guard let metadata = self.metadata else { return }
|