|
@@ -860,7 +860,7 @@ public class Nexilis: NSObject {
|
|
UIBarButtonItem.appearance().setTitleTextAttributes(cancelButtonAttributes, for: .normal)
|
|
UIBarButtonItem.appearance().setTitleTextAttributes(cancelButtonAttributes, for: .normal)
|
|
let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
- navigationController.view.backgroundColor = UIApplication.shared.visibleViewController?.traitCollection.userInterfaceStyle == .dark ? .blackDarkMode : .mainColor
|
|
|
|
|
|
+ navigationController.view.backgroundColor = UIApplication.shared.visibleViewController?.traitCollection.userInterfaceStyle == .dark ? .black : .white
|
|
if UIApplication.shared.visibleViewController?.navigationController != nil {
|
|
if UIApplication.shared.visibleViewController?.navigationController != nil {
|
|
UIApplication.shared.visibleViewController?.navigationController?.present(navigationController, animated: true, completion: nil)
|
|
UIApplication.shared.visibleViewController?.navigationController?.present(navigationController, animated: true, completion: nil)
|
|
} else {
|
|
} else {
|
|
@@ -904,7 +904,7 @@ public class Nexilis: NSObject {
|
|
UIBarButtonItem.appearance().setTitleTextAttributes(cancelButtonAttributes, for: .normal)
|
|
UIBarButtonItem.appearance().setTitleTextAttributes(cancelButtonAttributes, for: .normal)
|
|
let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
- navigationController.view.backgroundColor = UIApplication.shared.visibleViewController?.traitCollection.userInterfaceStyle == .dark ? .blackDarkMode : .mainColor
|
|
|
|
|
|
+ navigationController.view.backgroundColor = UIApplication.shared.visibleViewController?.traitCollection.userInterfaceStyle == .dark ? .black : .white
|
|
if UIApplication.shared.visibleViewController?.navigationController != nil {
|
|
if UIApplication.shared.visibleViewController?.navigationController != nil {
|
|
UIApplication.shared.visibleViewController?.navigationController?.present(navigationController, animated: true, completion: nil)
|
|
UIApplication.shared.visibleViewController?.navigationController?.present(navigationController, animated: true, completion: nil)
|
|
} else {
|
|
} else {
|
|
@@ -975,7 +975,7 @@ public class Nexilis: NSObject {
|
|
UIBarButtonItem.appearance().setTitleTextAttributes(cancelButtonAttributes, for: .normal)
|
|
UIBarButtonItem.appearance().setTitleTextAttributes(cancelButtonAttributes, for: .normal)
|
|
let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
- navigationController.view.backgroundColor = UIApplication.shared.visibleViewController?.traitCollection.userInterfaceStyle == .dark ? .blackDarkMode : .mainColor
|
|
|
|
|
|
+ navigationController.view.backgroundColor = UIApplication.shared.visibleViewController?.traitCollection.userInterfaceStyle == .dark ? .black : .white
|
|
let rootVC = UIApplication.shared.windows.filter {$0.isKeyWindow}.first?.rootViewController
|
|
let rootVC = UIApplication.shared.windows.filter {$0.isKeyWindow}.first?.rootViewController
|
|
if rootVC?.presentedViewController == nil {
|
|
if rootVC?.presentedViewController == nil {
|
|
rootVC?.present(navigationController, animated: true, completion: nil)
|
|
rootVC?.present(navigationController, animated: true, completion: nil)
|
|
@@ -2499,7 +2499,7 @@ extension Nexilis: MessageDelegate {
|
|
UIBarButtonItem.appearance().setTitleTextAttributes(cancelButtonAttributes, for: .normal)
|
|
UIBarButtonItem.appearance().setTitleTextAttributes(cancelButtonAttributes, for: .normal)
|
|
let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
- navigationController.view.backgroundColor = UIApplication.shared.visibleViewController?.traitCollection.userInterfaceStyle == .dark ? .blackDarkMode : .mainColor
|
|
|
|
|
|
+ navigationController.view.backgroundColor = UIApplication.shared.visibleViewController?.traitCollection.userInterfaceStyle == .dark ? .black : .white
|
|
if UIApplication.shared.visibleViewController?.navigationController != nil {
|
|
if UIApplication.shared.visibleViewController?.navigationController != nil {
|
|
UIApplication.shared.visibleViewController?.navigationController?.present(navigationController, animated: true, completion: nil)
|
|
UIApplication.shared.visibleViewController?.navigationController?.present(navigationController, animated: true, completion: nil)
|
|
} else {
|
|
} else {
|
|
@@ -2896,7 +2896,7 @@ extension Nexilis: MessageDelegate {
|
|
UIBarButtonItem.appearance().setTitleTextAttributes(cancelButtonAttributes, for: .normal)
|
|
UIBarButtonItem.appearance().setTitleTextAttributes(cancelButtonAttributes, for: .normal)
|
|
let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
- navigationController.view.backgroundColor = UIApplication.shared.visibleViewController?.traitCollection.userInterfaceStyle == .dark ? .blackDarkMode : .mainColor
|
|
|
|
|
|
+ navigationController.view.backgroundColor = UIApplication.shared.visibleViewController?.traitCollection.userInterfaceStyle == .dark ? .black : .white
|
|
if UIApplication.shared.visibleViewController?.navigationController != nil {
|
|
if UIApplication.shared.visibleViewController?.navigationController != nil {
|
|
UIApplication.shared.visibleViewController?.navigationController?.present(navigationController, animated: true, completion: nil)
|
|
UIApplication.shared.visibleViewController?.navigationController?.present(navigationController, animated: true, completion: nil)
|
|
} else {
|
|
} else {
|
|
@@ -3337,7 +3337,7 @@ extension Nexilis: MessageDelegate {
|
|
UIBarButtonItem.appearance().setTitleTextAttributes(cancelButtonAttributes, for: .normal)
|
|
UIBarButtonItem.appearance().setTitleTextAttributes(cancelButtonAttributes, for: .normal)
|
|
let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
- navigationController.view.backgroundColor = UIApplication.shared.visibleViewController?.traitCollection.userInterfaceStyle == .dark ? .blackDarkMode : .mainColor
|
|
|
|
|
|
+ navigationController.view.backgroundColor = UIApplication.shared.visibleViewController?.traitCollection.userInterfaceStyle == .dark ? .black : .white
|
|
if UIApplication.shared.visibleViewController?.navigationController != nil {
|
|
if UIApplication.shared.visibleViewController?.navigationController != nil {
|
|
UIApplication.shared.visibleViewController?.navigationController?.present(navigationController, animated: true, completion: nil)
|
|
UIApplication.shared.visibleViewController?.navigationController?.present(navigationController, animated: true, completion: nil)
|
|
} else {
|
|
} else {
|
|
@@ -3380,7 +3380,7 @@ extension Nexilis: MessageDelegate {
|
|
UIBarButtonItem.appearance().setTitleTextAttributes(cancelButtonAttributes, for: .normal)
|
|
UIBarButtonItem.appearance().setTitleTextAttributes(cancelButtonAttributes, for: .normal)
|
|
let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
- navigationController.view.backgroundColor = UIApplication.shared.visibleViewController?.traitCollection.userInterfaceStyle == .dark ? .blackDarkMode : .mainColor
|
|
|
|
|
|
+ navigationController.view.backgroundColor = UIApplication.shared.visibleViewController?.traitCollection.userInterfaceStyle == .dark ? .black : .white
|
|
if UIApplication.shared.visibleViewController?.navigationController != nil {
|
|
if UIApplication.shared.visibleViewController?.navigationController != nil {
|
|
UIApplication.shared.visibleViewController?.navigationController?.present(navigationController, animated: true, completion: nil)
|
|
UIApplication.shared.visibleViewController?.navigationController?.present(navigationController, animated: true, completion: nil)
|
|
} else {
|
|
} else {
|
|
@@ -3473,7 +3473,7 @@ extension Nexilis: MessageDelegate {
|
|
UIBarButtonItem.appearance().setTitleTextAttributes(cancelButtonAttributes, for: .normal)
|
|
UIBarButtonItem.appearance().setTitleTextAttributes(cancelButtonAttributes, for: .normal)
|
|
let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
let textAttributes = [NSAttributedString.Key.foregroundColor:UIColor.white]
|
|
navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
navigationController.navigationBar.titleTextAttributes = textAttributes
|
|
- navigationController.view.backgroundColor = UIApplication.shared.visibleViewController?.traitCollection.userInterfaceStyle == .dark ? .blackDarkMode : .mainColor
|
|
|
|
|
|
+ navigationController.view.backgroundColor = UIApplication.shared.visibleViewController?.traitCollection.userInterfaceStyle == .dark ? .black : .white
|
|
if UIApplication.shared.visibleViewController?.navigationController != nil {
|
|
if UIApplication.shared.visibleViewController?.navigationController != nil {
|
|
UIApplication.shared.visibleViewController?.navigationController?.present(navigationController, animated: true, completion: nil)
|
|
UIApplication.shared.visibleViewController?.navigationController?.present(navigationController, animated: true, completion: nil)
|
|
} else {
|
|
} else {
|