Browse Source

dark mode

marinofaggiana 5 years ago
parent
commit
b95b93fb47

+ 7 - 2
iOSClient/Activity/NCActivity.swift

@@ -42,7 +42,7 @@ class NCActivity: UIViewController, DZNEmptyDataSetSource, DZNEmptyDataSetDelega
     
     var canFetchActivity = true
     var dateAutomaticFetch : Date?
-
+    
     override func viewDidLoad() {
         super.viewDidLoad()
     
@@ -74,7 +74,12 @@ class NCActivity: UIViewController, DZNEmptyDataSetSource, DZNEmptyDataSetDelega
     }
     
     @objc func changeTheming() {
-        appDelegate.changeTheming(self, tableView: tableView, collectionView: nil, form: false)
+        
+        if filterFileId == nil {
+            appDelegate.changeTheming(self, tableView: tableView, collectionView: nil, form: false)
+        } else {
+            appDelegate.changeTheming(self, tableView: tableView, collectionView: nil, form: true)
+        }
     }
     
     // MARK: DZNEmpty

+ 1 - 1
iOSClient/Share/NCShare.swift

@@ -107,7 +107,7 @@ class NCShare: UIViewController, UIGestureRecognizerDelegate, NCShareLinkCellDel
     }
     
     @objc func changeTheming() {
-        appDelegate.changeTheming(self, tableView: tableView, collectionView: nil, form: false)
+        appDelegate.changeTheming(self, tableView: tableView, collectionView: nil, form: true)
         
         shareLinkLabel.textColor = NCBrandColor.sharedInstance.textView
     }

+ 1 - 1
iOSClient/Share/NCShareComments.swift

@@ -96,7 +96,7 @@ class NCShareComments: UIViewController, NCShareCommentsCellDelegate {
     }
     
     @objc func changeTheming() {
-        appDelegate.changeTheming(self, tableView: tableView, collectionView: nil, form: false)
+        appDelegate.changeTheming(self, tableView: tableView, collectionView: nil, form: true)
         
         labelUser.textColor = NCBrandColor.sharedInstance.textView
     }

+ 2 - 2
iOSClient/Share/NCSharePaging.swift

@@ -74,7 +74,7 @@ class NCSharePaging: UIViewController {
     }
     
     @objc func changeTheming() {
-        appDelegate.changeTheming(self, tableView: nil, collectionView: nil, form: false)
+        appDelegate.changeTheming(self, tableView: nil, collectionView: nil, form: true)
         
         pagingViewController.backgroundColor = NCBrandColor.sharedInstance.backgroundForm
         pagingViewController.selectedBackgroundColor = NCBrandColor.sharedInstance.backgroundForm
@@ -234,7 +234,7 @@ class NCSharePagingView: PagingView {
             pageView.leadingAnchor.constraint(equalTo: leadingAnchor),
             pageView.trailingAnchor.constraint(equalTo: trailingAnchor),
             pageView.bottomAnchor.constraint(equalTo: bottomAnchor),
-            pageView.topAnchor.constraint(equalTo: topAnchor)
+            pageView.topAnchor.constraint(equalTo: topAnchor, constant: 10)
         ])
     }
 }