marinofaggiana 5 years ago
parent
commit
954bdc6989
1 changed files with 16 additions and 0 deletions
  1. 16 0
      iOSClient/AppDelegate.m

+ 16 - 0
iOSClient/AppDelegate.m

@@ -86,6 +86,7 @@
     self.arrayMoveServerUrlTo = [NSMutableArray new];
     self.arrayCopyMetadata = [NSMutableArray new];
     self.arrayCopyServerUrlTo = [NSMutableArray new];
+    self.sessionPendingStatusInUpload = [NSMutableArray new];
     
     // Push Notification
     [application registerForRemoteNotifications];
@@ -1008,6 +1009,21 @@
     // 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;