Browse Source

dev darkmode

marinofaggiana 5 years ago
parent
commit
d7d1f1f75a

+ 1 - 0
iOSClient/Main/Section/NCSectionHeaderFooter.swift

@@ -49,6 +49,7 @@ class NCSectionHeaderMenu: UICollectionReusableView {
         viewLabelSection.backgroundColor = NCBrandColor.sharedInstance.brand.withAlphaComponent(0.1)
         
         separator.backgroundColor = NCBrandColor.sharedInstance.seperator
+        self.backgroundColor = NCBrandColor.sharedInstance.backgroundView
     }
     
     func setTitleOrder(datasourceSorted: String, datasourceAscending: Bool) {

+ 3 - 5
iOSClient/Main/Section/NCSectionHeaderMenu.xib

@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
     <device id="retina4_7" orientation="portrait">
         <adaptation id="fullscreen"/>
     </device>
     <dependencies>
         <deployment identifier="iOS"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14460.20"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14490.49"/>
         <capability name="Safe area layout guides" minToolsVersion="9.0"/>
         <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
     </dependencies>
@@ -63,7 +63,6 @@
                             </constraints>
                         </view>
                     </subviews>
-                    <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                     <constraints>
                         <constraint firstItem="1LD-cd-zhc" firstAttribute="leading" secondItem="QBu-GJ-Y52" secondAttribute="leading" constant="12" id="3bI-Ld-Ddl"/>
                         <constraint firstAttribute="trailing" secondItem="LZu-Te-clJ" secondAttribute="trailing" id="4Ue-ug-B6K"/>
@@ -95,7 +94,6 @@
                     </constraints>
                 </view>
             </subviews>
-            <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
             <constraints>
                 <constraint firstItem="QBu-GJ-Y52" firstAttribute="leading" secondItem="pm7-uW-mZE" secondAttribute="leading" id="2Jt-JT-Jbi"/>
                 <constraint firstItem="pm7-uW-mZE" firstAttribute="bottom" secondItem="NC1-5C-E5z" secondAttribute="bottom" id="35N-28-6Fp"/>
@@ -120,7 +118,7 @@
         </collectionReusableView>
     </objects>
     <resources>
-        <image name="moreBig" width="80" height="80"/>
+        <image name="moreBig" width="50" height="50"/>
         <image name="switchList" width="25" height="25"/>
     </resources>
 </document>

+ 1 - 1
iOSClient/Move/CCMove.m

@@ -155,7 +155,7 @@
 
 - (UIColor *)backgroundColorForEmptyDataSet:(UIScrollView *)scrollView
 {
-    return [UIColor whiteColor];
+    return [NCBrandColor sharedInstance].backgroundView;
 }
 
 - (UIView *)customViewForEmptyDataSet:(UIScrollView *)scrollView

+ 1 - 0
iOSClient/Offline/NCOffline.swift

@@ -116,6 +116,7 @@ class NCOffline: UIViewController, UIGestureRecognizerDelegate, NCListCellDelega
         // Color
         appDelegate.aspectNavigationControllerBar(self.navigationController?.navigationBar, online: appDelegate.reachability.isReachable(), hidden: false)
         appDelegate.aspectTabBar(self.tabBarController?.tabBar, hidden: false)
+        collectionView.backgroundColor = NCBrandColor.sharedInstance.backgroundView
         
         self.navigationItem.title = titleCurrentFolder
         

+ 1 - 0
iOSClient/Trash/Section/NCTrashSectionHeaderFooter.swift

@@ -54,6 +54,7 @@ class NCTrashSectionHeaderMenu: UICollectionReusableView {
         buttonMore.setImage(CCGraphics.changeThemingColorImage(UIImage.init(named: "more"), multiplier: 2, color: NCBrandColor.sharedInstance.icon), for: .normal)
         
         separator.backgroundColor = NCBrandColor.sharedInstance.seperator
+        backgroundColor = NCBrandColor.sharedInstance.backgroundView
     }
     
     func setTitleOrder(datasourceSorted: String, datasourceAscending: Bool) {