Browse Source

clear old code

marinofaggiana 5 years ago
parent
commit
b62ff715c3

+ 1 - 6
iOSClient/Main/Create cloud/NCCreateMenuAdd.swift

@@ -121,12 +121,7 @@ class NCCreateMenuAdd: NSObject {
             
             if item is ActionSheetCancelButton { print("Cancel buttons has the value `true`") }
         }
-        
-//        ActionSheetTableView.appearance().backgroundColor = NCBrandColor.sharedInstance.backgroundForm
-//        ActionSheetTableView.appearance().separatorColor = NCBrandColor.sharedInstance.separator
-//        ActionSheetItemCell.appearance().backgroundColor = NCBrandColor.sharedInstance.backgroundForm
-//        ActionSheetItemCell.appearance().titleColor = NCBrandColor.sharedInstance.textView
-        
+                
         actionSheet.present(in: viewController, from: view)
     }
 }

+ 1 - 11
iOSClient/Offline/NCOffline.swift

@@ -365,11 +365,6 @@ class NCOffline: UIViewController, UIGestureRecognizerDelegate, NCListCellDelega
             actionSheet?.headerView = headerView
             actionSheet?.headerView?.frame.size.height = 50
             
-            ActionSheetTableView.appearance().backgroundColor = NCBrandColor.sharedInstance.backgroundForm
-            ActionSheetTableView.appearance().separatorColor = NCBrandColor.sharedInstance.separator
-            ActionSheetItemCell.appearance().backgroundColor = NCBrandColor.sharedInstance.backgroundForm
-            ActionSheetItemCell.appearance().titleColor = NCBrandColor.sharedInstance.textView
-            
             actionSheet?.present(in: self, from: sender as! UIButton)
         } else {
             
@@ -776,12 +771,7 @@ extension NCOffline {
         let headerView = NCActionSheetHeader.sharedInstance.actionSheetHeader(isDirectory: metadata.directory, iconName: metadata.iconName, ocId: metadata.ocId, fileNameView: metadata.fileNameView, text: metadata.fileNameView)
         actionSheet?.headerView = headerView
         actionSheet?.headerView?.frame.size.height = 50
-        
-        ActionSheetTableView.appearance().backgroundColor = NCBrandColor.sharedInstance.backgroundForm
-        ActionSheetTableView.appearance().separatorColor = NCBrandColor.sharedInstance.separator
-        ActionSheetItemCell.appearance().backgroundColor = NCBrandColor.sharedInstance.backgroundForm
-        ActionSheetItemCell.appearance().titleColor = NCBrandColor.sharedInstance.textView
-        
+     
         actionSheet?.present(in: self, from: sender as! UIButton)
     }
 }

+ 0 - 5
iOSClient/Share/NCShareComments.swift

@@ -193,11 +193,6 @@ class NCShareComments: UIViewController, NCShareCommentsCellDelegate {
             if item is ActionSheetCancelButton { print("Cancel buttons has the value `true`") }
         }
         
-        ActionSheetTableView.appearance().backgroundColor = NCBrandColor.sharedInstance.backgroundForm
-        ActionSheetTableView.appearance().separatorColor = NCBrandColor.sharedInstance.separator
-        ActionSheetItemCell.appearance().backgroundColor = NCBrandColor.sharedInstance.backgroundForm
-        ActionSheetItemCell.appearance().titleColor = NCBrandColor.sharedInstance.textView
-        
         actionSheet?.present(in: self, from: sender as! UIButton)
     }
 }

+ 0 - 20
iOSClient/Trash/NCTrash.swift

@@ -299,11 +299,6 @@ class NCTrash: UIViewController, UIGestureRecognizerDelegate, NCTrashListCellDel
             actionSheet?.headerView = headerView
             actionSheet?.headerView?.frame.size.height = 50
             
-            ActionSheetTableView.appearance().backgroundColor = NCBrandColor.sharedInstance.backgroundForm
-            ActionSheetTableView.appearance().separatorColor = NCBrandColor.sharedInstance.separator
-            ActionSheetItemCell.appearance().backgroundColor = NCBrandColor.sharedInstance.backgroundForm
-            ActionSheetItemCell.appearance().titleColor = NCBrandColor.sharedInstance.textView
-            
             actionSheet?.present(in: self, from: sender as! UIButton)
         } else {
             let buttonPosition:CGPoint = (sender as! UIButton).convert(CGPoint.zero, to:collectionView)
@@ -336,11 +331,6 @@ class NCTrash: UIViewController, UIGestureRecognizerDelegate, NCTrashListCellDel
             actionSheet?.headerView = headerView
             actionSheet?.headerView?.frame.size.height = 50
             
-            ActionSheetTableView.appearance().backgroundColor = NCBrandColor.sharedInstance.backgroundForm
-            ActionSheetTableView.appearance().separatorColor = NCBrandColor.sharedInstance.separator
-            ActionSheetItemCell.appearance().backgroundColor = NCBrandColor.sharedInstance.backgroundForm
-            ActionSheetItemCell.appearance().titleColor = NCBrandColor.sharedInstance.textView
-            
             actionSheet?.present(in: self, from: sender as! UIButton)
         } else {
             let buttonPosition:CGPoint = (sender as! UIButton).convert(CGPoint.zero, to:collectionView)
@@ -410,11 +400,6 @@ class NCTrash: UIViewController, UIGestureRecognizerDelegate, NCTrashListCellDel
                     if item is ActionSheetCancelButton { return }
                 }
                 
-                ActionSheetTableView.appearance().backgroundColor = NCBrandColor.sharedInstance.backgroundForm
-                ActionSheetTableView.appearance().separatorColor = NCBrandColor.sharedInstance.separator
-                ActionSheetItemCell.appearance().backgroundColor = NCBrandColor.sharedInstance.backgroundForm
-                ActionSheetItemCell.appearance().titleColor = NCBrandColor.sharedInstance.textView
-                
                 actionSheet?.present(in: self, from: self.view)
             }
         }
@@ -459,11 +444,6 @@ class NCTrash: UIViewController, UIGestureRecognizerDelegate, NCTrashListCellDel
                     if item is ActionSheetCancelButton { return }
                 }
                 
-                ActionSheetTableView.appearance().backgroundColor = NCBrandColor.sharedInstance.backgroundForm
-                ActionSheetTableView.appearance().separatorColor = NCBrandColor.sharedInstance.separator
-                ActionSheetItemCell.appearance().backgroundColor = NCBrandColor.sharedInstance.backgroundForm
-                ActionSheetItemCell.appearance().titleColor = NCBrandColor.sharedInstance.textView
-                
                 actionSheet?.present(in: self, from: self.view)
             }