marinofaggiana 4 years ago
parent
commit
78c61f72b6

+ 1 - 0
iOSClient/AppDelegate.swift

@@ -620,6 +620,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
                 
                 let popup = NCPopupViewController(contentController: vcAccountRequest, popupWidth: 300, popupHeight: 310)
                 popup.backgroundAlpha = 0.8
+                popup.borderEnabled = true
                              
                 UIApplication.shared.keyWindow?.rootViewController?.present(popup, animated: true)
                 

+ 1 - 1
iOSClient/Main/Account Request/NCAccountRequest.swift

@@ -172,7 +172,7 @@ extension NCAccountRequest: UITableViewDataSource {
         avatarImage?.image = avatar
         accountLabel?.text = account.user + " " + (URL(string: account.urlBase)?.host ?? "")
         if account.active {
-            activeImage?.image = UIImage(named: "check")
+            activeImage?.image = UIImage(named: "check")!.imageColor(NCBrandColor.shared.brandText)
         } else {
             activeImage?.image = nil
         }

+ 9 - 0
iOSClient/Utility/NCPopupViewController.swift

@@ -57,6 +57,9 @@ public class NCPopupViewController: UIViewController {
     // Shadow enabled, default is true
     public var shadowEnabled = true
     
+    // Border enabled, default is false
+    public var borderEnabled = false
+    
     // Move the popup position H when show/hide keyboard
     public var keyboardPosizionEnabled = true
 
@@ -153,6 +156,12 @@ public class NCPopupViewController: UIViewController {
             containerView.layer.shadowOffset = CGSize(width: 5, height: 5)
             containerView.layer.shadowRadius = 5
         }
+        
+        if borderEnabled {
+            containerView.layer.cornerRadius = cornerRadius
+            containerView.layer.borderWidth = 0.3
+            containerView.layer.borderColor = UIColor.gray.cgColor
+        }
     }
     
     private func setupViews() {