|
@@ -102,6 +102,10 @@ class NCRenameFile: UIViewController, UITextFieldDelegate {
|
|
|
renameButton.layer.cornerRadius = 15
|
|
|
renameButton.layer.masksToBounds = true
|
|
|
renameButton.layer.backgroundColor = NCBrandColor.shared.brand.cgColor
|
|
|
+
|
|
|
+ NotificationCenter.default.addObserver(self, selector: #selector(changeTheming), name: NSNotification.Name(rawValue: NCGlobal.shared.notificationCenterChangeTheming), object: nil)
|
|
|
+
|
|
|
+ changeTheming()
|
|
|
}
|
|
|
|
|
|
override func viewWillAppear(_ animated: Bool) {
|
|
@@ -126,6 +130,12 @@ class NCRenameFile: UIViewController, UITextFieldDelegate {
|
|
|
return true
|
|
|
}
|
|
|
|
|
|
+ // MARK: - NotificationCenter
|
|
|
+
|
|
|
+ @objc func changeTheming() {
|
|
|
+ view.backgroundColor = NCBrandColor.shared.backgroundForm
|
|
|
+ }
|
|
|
+
|
|
|
// MARK: - Action
|
|
|
|
|
|
@IBAction func cancel(_ sender: Any) {
|