marinofaggiana 5 years ago
parent
commit
68c6ff1f71
1 changed files with 5 additions and 3 deletions
  1. 5 3
      iOSClient/RichWorkspace/NCRichWorkspace.swift

+ 5 - 3
iOSClient/RichWorkspace/NCRichWorkspace.swift

@@ -37,6 +37,10 @@ import MarkdownKit
     override func awakeFromNib() {
         NotificationCenter.default.addObserver(self, selector: #selector(self.changeTheming), name: NSNotification.Name(rawValue: "changeTheming"), object: nil)
         changeTheming()
+        
+        // Gradient
+        gradient.startPoint = CGPoint(x: 0, y: 0.60)
+        gradient.endPoint = CGPoint(x: 0, y: 1)
         layer.addSublayer(gradient)
     }
     
@@ -54,14 +58,12 @@ import MarkdownKit
             }
             textViewColor = NCBrandColor.sharedInstance.textView
             
-            // Gradient
             if CCUtility.getDarkMode() {
                 gradient.colors = [UIColor.init(white: 0, alpha: 0).cgColor, UIColor.black.cgColor]
             } else {
                 gradient.colors = [UIColor.init(white: 1, alpha: 0).cgColor, UIColor.white.cgColor]
             }
-            gradient.startPoint = CGPoint(x: 0, y: 0.60)
-            gradient.endPoint = CGPoint(x: 0, y: 1)
+            
         }
     }