Browse Source

bar bottom line shadow

Marino Faggiana 7 years ago
parent
commit
d42a54ddbe
3 changed files with 5 additions and 10 deletions
  1. 4 0
      iOSClient/AppDelegate.m
  2. 1 4
      iOSClient/Main/CCDetail.m
  3. 0 6
      iOSClient/Main/CCMain.m

+ 4 - 0
iOSClient/AppDelegate.m

@@ -919,6 +919,8 @@
     nav.barTintColor = [NCBrandColor sharedInstance].brand;
     nav.tintColor = [NCBrandColor sharedInstance].navigationBarText;
     [nav setTitleTextAttributes:@{NSForegroundColorAttributeName : [NCBrandColor sharedInstance].navigationBarText}];
+    // Change bar bottom line shadow
+    nav.shadowImage = [CCGraphics generateSinglePixelImageWithColor:[NCBrandColor sharedInstance].brand];
     
     if (!online)
         [nav setTitleTextAttributes:@{NSForegroundColorAttributeName : [NCBrandColor sharedInstance].connectionNo}];
@@ -1077,6 +1079,8 @@
     // Change Navigation & TabBar color
     vc.navigationController.navigationBar.barTintColor = color;
     vc.tabBarController.tabBar.tintColor = color;
+    // Change bar bottom line shadow
+    vc.navigationController.navigationBar.shadowImage = [CCGraphics generateSinglePixelImageWithColor:[NCBrandColor sharedInstance].brand];
     
     // Change button Plus
     UISplitViewController *splitViewController = (UISplitViewController *)self.window.rootViewController;

+ 1 - 4
iOSClient/Main/CCDetail.m

@@ -221,10 +221,7 @@
     if (_toolbar) {
         _toolbar.barTintColor = [NCBrandColor sharedInstance].tabBar;
         _toolbar.tintColor = [NCBrandColor sharedInstance].brand;
-    }
-    
-    // Change bar bottom line shadow
-    self.navigationController.navigationBar.shadowImage = [CCGraphics generateSinglePixelImageWithColor:[NCBrandColor sharedInstance].brand];
+    }    
 }
 
 #pragma --------------------------------------------------------------------------------------------

+ 0 - 6
iOSClient/Main/CCMain.m

@@ -162,9 +162,6 @@
     // Pull-to-Refresh
     [self createRefreshControl];
     
-    // Change bar bottom line shadow
-    self.navigationController.navigationBar.shadowImage = [CCGraphics generateSinglePixelImageWithColor:[NCBrandColor sharedInstance].brand];
-    
     // Register for 3D Touch Previewing if available
     if ([self.traitCollection respondsToSelector:@selector(forceTouchCapability)] && (self.traitCollection.forceTouchCapability == UIForceTouchCapabilityAvailable))
     {
@@ -323,9 +320,6 @@
     self.searchController.searchBar.barTintColor = [NCBrandColor sharedInstance].brand;
     self.searchController.searchBar.backgroundColor = [NCBrandColor sharedInstance].brand;
     
-    // Change bar bottom line shadow
-    self.navigationController.navigationBar.shadowImage = [CCGraphics generateSinglePixelImageWithColor:[NCBrandColor sharedInstance].brand];
-    
     // Reload Table View
     [self tableViewReloadData];
 }