marinofaggiana 3 gadi atpakaļ
vecāks
revīzija
b988be6eb7

+ 1 - 3
iOSClient/AppDelegate.swift

@@ -670,10 +670,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
         }
         
         if passcodeViewController == nil {
+            
             passcodeViewController = TOPasscodeViewController.init(style: .translucentLight, passcodeType: .sixDigits)
-//            if darkMode {
-//                passcodeViewController?.style = .translucentDark
-//            }
             passcodeViewController?.delegate = self
             passcodeViewController?.keypadButtonShowLettering = false
             if CCUtility.getEnableTouchFaceID() && laContext.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: &error) {

+ 3 - 5
iOSClient/Viewer/NCViewerImage/NCViewerImage.swift

@@ -65,6 +65,9 @@ class NCViewerImage: UIViewController {
     override func viewDidLoad() {
         super.viewDidLoad()
         
+        view.backgroundColor = NCBrandColor.shared.systemBackground
+        textColor = NCBrandColor.shared.label
+
         singleTapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(didSingleTapWith(gestureRecognizer:)))
         panGestureRecognizer = UIPanGestureRecognizer(target: self, action: #selector(didPanWith(gestureRecognizer:)))
         longtapGestureRecognizer = UILongPressGestureRecognizer()
@@ -217,11 +220,6 @@ class NCViewerImage: UIViewController {
     }
     
     @objc func changeTheming() {
-        
-        if currentMode == .normal {
-            view.backgroundColor = NCBrandColor.shared.systemBackground
-            textColor = NCBrandColor.shared.label
-        }
         toolBar.tintColor = NCBrandColor.shared.brandElement
     }