|
@@ -1009,21 +1009,6 @@
|
|
|
// Dark Mode
|
|
|
[NCBrandColor.sharedInstance setDarkMode];
|
|
|
|
|
|
- // Appearance
|
|
|
- UINavigationBar.appearance.tintColor = NCBrandColor.sharedInstance.brand;
|
|
|
- UINavigationBar.appearance.barTintColor = NCBrandColor.sharedInstance.brand;
|
|
|
- //[UINavigationBar.appearance setBackgroundImage:[[NCUtility sharedInstance] fromColorWithColor:NCBrandColor.sharedInstance.brand] forBarMetrics: UIBarMetricsDefault];
|
|
|
- UINavigationBar.appearance.titleTextAttributes = @{NSForegroundColorAttributeName : NCBrandColor.sharedInstance.brand};
|
|
|
- UINavigationBar.appearance.translucent = false;
|
|
|
- // Refresh UIAppearance after application loaded
|
|
|
- NSArray *windows = [UIApplication sharedApplication].windows;
|
|
|
- for (UIWindow *window in windows) {
|
|
|
- for (UIView *view in window.subviews) {
|
|
|
- [view removeFromSuperview];
|
|
|
- [window addSubview:view];
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
// View
|
|
|
if (form) viewController.view.backgroundColor = NCBrandColor.sharedInstance.backgroundForm;
|
|
|
else viewController.view.backgroundColor = NCBrandColor.sharedInstance.backgroundView;
|