Browse Source

White background for document - Fix for #1076

Signed-off-by: Philippe Weidmann <philippe.weidmann@infomaniak.com>
Philippe Weidmann 5 years ago
parent
commit
511d635ce4
1 changed files with 1 additions and 5 deletions
  1. 1 5
      iOSClient/Viewer/NCViewerDocumentWeb.swift

+ 1 - 5
iOSClient/Viewer/NCViewerDocumentWeb.swift

@@ -73,11 +73,7 @@ class NCViewerDocumentWeb: NSObject {
         let webView = WKWebView(frame: CGRect(x: 0, y: 0, width: Int(detail.view.bounds.size.width), height: Int(detail.view.bounds.size.height) - Int(k_detail_Toolbar_Height) - safeAreaBottom - 1), configuration: configuration)
         webView.navigationDelegate = self
         webView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
-        if CCUtility.getDarkMode() {
-            webView.backgroundColor = .lightGray
-        } else {
-            webView.backgroundColor = .white
-        }
+        webView.backgroundColor = .white
         
         webView.isOpaque = false