marinofaggiana 4 years ago
parent
commit
031c0d95f3

+ 4 - 2
iOSClient/AppDelegate.swift

@@ -620,8 +620,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
                 
                 let popup = NCPopupViewController(contentController: vcAccountRequest, popupWidth: 300, popupHeight: 310)
                 popup.backgroundAlpha = 0.8
-                popup.borderEnabled = true
-                             
+                if CCUtility.getDarkMode() {
+                    popup.borderEnabled = true
+                }
+                
                 UIApplication.shared.keyWindow?.rootViewController?.present(popup, animated: true)
                 
                 if startTimer {

+ 3 - 0
iOSClient/Menu/NCCollectionViewCommon+Menu.swift

@@ -212,6 +212,9 @@ extension NCCollectionViewCommon {
                             vcRename.imagePreview = image
 
                             let popup = NCPopupViewController(contentController: vcRename, popupWidth: 300, popupHeight: 360)
+                            if CCUtility.getDarkMode() {
+                                popup.borderEnabled = true
+                            }
                                                         
                             self.present(popup, animated: true)
                         }

+ 4 - 1
iOSClient/Menu/NCViewer+Menu.swift

@@ -162,7 +162,10 @@ extension NCViewer {
                             vcRename.disableChangeExt = true
 
                             let popup = NCPopupViewController(contentController: vcRename, popupWidth: 300, popupHeight: 360)
-                                                        
+                            if CCUtility.getDarkMode() {
+                                popup.borderEnabled = true
+                            }
+                            
                             viewController.present(popup, animated: true)
                         }
                     }