marinofaggiana 5 years ago
parent
commit
8fcb25da43

+ 1 - 1
iOSClient/AppDelegate.h

@@ -171,7 +171,7 @@
 
 // Theming Color
 - (void)settingThemingColorBrand;
-- (void)changeTheming:(UIViewController *)viewController tableView:(UITableView *)tableView;
+- (void)changeTheming:(UIViewController *)viewController tableView:(UITableView *)tableView collectionView:(UICollectionView *)collectionView;
 - (void)settingDarkMode;
 
 // Task Networking

+ 7 - 1
iOSClient/AppDelegate.m

@@ -1028,7 +1028,7 @@ PKPushRegistry *pushRegistry;
     [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:@"changeTheming" object:nil];
 }
 
-- (void)changeTheming:(UIViewController *)viewController tableView:(UITableView *)tableView
+- (void)changeTheming:(UIViewController *)viewController tableView:(UITableView *)tableView collectionView:(UICollectionView *)collectionView
 {
     // Change Navigation & TabBar color
     viewController.navigationController.navigationBar.barTintColor = NCBrandColor.sharedInstance.brand;
@@ -1057,6 +1057,12 @@ PKPushRegistry *pushRegistry;
         [tableView reloadData];
     }
     
+    // CollectionView
+    if (collectionView) {
+        collectionView.backgroundColor = NCBrandColor.sharedInstance.backgroundView;
+        [collectionView reloadData];
+    }
+    
     // Tint Color GLOBAL WINDOW
     [self.window setTintColor:NCBrandColor.sharedInstance.textView];
 }

+ 1 - 1
iOSClient/Favorites/CCFavorites.m

@@ -126,7 +126,7 @@
 - (void)changeTheming
 {
     if (self.isViewLoaded && self.view.window)
-        [appDelegate changeTheming:self tableView:self.tableView];
+        [appDelegate changeTheming:self tableView:self.tableView collectionView:nil];
     
     // Reload Table View
     [self.tableView reloadData];

+ 1 - 1
iOSClient/Main/CCDetail.m

@@ -140,7 +140,7 @@
 
 - (void)changeTheming
 {
-    [appDelegate changeTheming:self tableView:nil];
+    [appDelegate changeTheming:self tableView:nil collectionView:nil];
     
     if (self.toolbar) {
         self.toolbar.barTintColor = NCBrandColor.sharedInstance.tabBar;

+ 1 - 1
iOSClient/Main/CCMain.m

@@ -279,7 +279,7 @@
 - (void)changeTheming
 {
     if (self.isViewLoaded && self.view.window)
-        [appDelegate changeTheming:self tableView:self.tableView];
+        [appDelegate changeTheming:self tableView:self.tableView collectionView:nil];
     
     // Refresh control
     refreshControl.tintColor = NCBrandColor.sharedInstance.brandText;

+ 1 - 1
iOSClient/Main/CCMore.swift

@@ -221,7 +221,7 @@ class CCMore: UIViewController, UITableViewDelegate, UITableViewDataSource {
         disclosureIndicator.image = CCGraphics.changeThemingColorImage(disclosureIndicator.image, width: 48, height: 52, color: NCBrandColor.sharedInstance.brandText)
         
         if (self.isViewLoaded && (self.view.window != nil)) {
-            appDelegate.changeTheming(self, tableView: tableView)
+            appDelegate.changeTheming(self, tableView: tableView, collectionView: nil)
             viewQuota.backgroundColor = NCBrandColor.sharedInstance.backgroundView;
         }
     }

+ 2 - 2
iOSClient/Media/NCMedia.swift

@@ -109,7 +109,7 @@ class NCMedia: UIViewController, DropdownMenuDelegate, DZNEmptyDataSetSource, DZ
         // Aspect Color
         appDelegate.aspectNavigationControllerBar(self.navigationController?.navigationBar, online: appDelegate.reachability.isReachable(), hidden: false)
         appDelegate.aspectTabBar(self.tabBarController?.tabBar, hidden: false)
-        collectionView.backgroundColor = NCBrandColor.sharedInstance.backgroundView;
+        collectionView.backgroundColor = NCBrandColor.sharedInstance.backgroundView
         
         // Configure Refresh Control
         refreshControl.tintColor = NCBrandColor.sharedInstance.brandText
@@ -158,7 +158,7 @@ class NCMedia: UIViewController, DropdownMenuDelegate, DZNEmptyDataSetSource, DZ
     @objc func changeTheming() {
         
         if self.isViewLoaded && self.view?.window != nil {
-            appDelegate.changeTheming(self, tableView: nil)
+            appDelegate.changeTheming(self, tableView: nil, collectionView: collectionView)
         }
     }
 

+ 1 - 1
iOSClient/Settings/CCAdvanced.m

@@ -181,7 +181,7 @@
 - (void)changeTheming
 {
     if (self.isViewLoaded && self.view.window)
-        [appDelegate changeTheming:self tableView:self.tableView];
+        [appDelegate changeTheming:self tableView:self.tableView collectionView:nil];
 }
 
 - (void)formRowDescriptorValueHasChanged:(XLFormRowDescriptor *)rowDescriptor oldValue:(id)oldValue newValue:(id)newValue

+ 1 - 1
iOSClient/Settings/CCManageAccount.m

@@ -366,7 +366,7 @@
 
 - (void)changeTheming
 {
-    [appDelegate changeTheming:self tableView:self.tableView];
+    [appDelegate changeTheming:self tableView:self.tableView collectionView:nil];
 }
 
 #pragma --------------------------------------------------------------------------------------------

+ 1 - 1
iOSClient/Settings/CCManageAutoUpload.m

@@ -249,7 +249,7 @@
 - (void)changeTheming
 {
     if (self.isViewLoaded && self.view.window)
-        [appDelegate changeTheming:self tableView:self.tableView];
+        [appDelegate changeTheming:self tableView:self.tableView collectionView:nil];
 }
 
 -(void)formRowDescriptorValueHasChanged:(XLFormRowDescriptor *)rowDescriptor oldValue:(id)oldValue newValue:(id)newValue

+ 1 - 1
iOSClient/Settings/CCSettings.m

@@ -229,7 +229,7 @@
 - (void)changeTheming
 {
     if (self.isViewLoaded && self.view.window)
-        [appDelegate changeTheming:self tableView:self.tableView];
+        [appDelegate changeTheming:self tableView:self.tableView collectionView:nil];
 }
 
 #pragma --------------------------------------------------------------------------------------------

+ 1 - 1
iOSClient/Shares/NCShares.m

@@ -95,7 +95,7 @@
 - (void)changeTheming
 {
     if (self.isViewLoaded && self.view.window)
-        [appDelegate changeTheming:self tableView:self.tableView];
+        [appDelegate changeTheming:self tableView:self.tableView collectionView:nil];
     
     // Reload Table View
     [self.tableView reloadData];

+ 1 - 1
iOSClient/Transfers/CCTransfers.m

@@ -105,7 +105,7 @@
 - (void)changeTheming
 {
     if (self.isViewLoaded && self.view.window)
-        [appDelegate changeTheming:self tableView:self.tableView];
+        [appDelegate changeTheming:self tableView:self.tableView collectionView:nil];
 }
 
 #pragma --------------------------------------------------------------------------------------------