Browse Source

fix searchBar color

Marino Faggiana 7 years ago
parent
commit
5867af00c4
1 changed files with 8 additions and 4 deletions
  1. 8 4
      iOSClient/Main/CCMain.m

+ 8 - 4
iOSClient/Main/CCMain.m

@@ -317,8 +317,8 @@
         [app changeTheming:self];
     
     // Refresh control
-    _refreshControl.tintColor = [NCBrandColor sharedInstance].brand;
-    
+    _refreshControl.backgroundColor = [NCBrandColor sharedInstance].brand;
+
     // color searchbar
     self.searchController.searchBar.barTintColor = [NCBrandColor sharedInstance].brand;
     self.searchController.searchBar.backgroundColor = [NCBrandColor sharedInstance].brand;
@@ -516,8 +516,8 @@
 {
     _refreshControl = [UIRefreshControl new];
    
-    _refreshControl.tintColor = [NCBrandColor sharedInstance].brand;
-    _refreshControl.backgroundColor = [UIColor whiteColor];
+    _refreshControl.tintColor = [UIColor whiteColor];
+    _refreshControl.backgroundColor = [NCBrandColor sharedInstance].brand;
     [self setRefreshControl:_refreshControl];
     
     [_refreshControl addTarget:self action:@selector(refreshControlTarget) forControlEvents:UIControlEventValueChanged];
@@ -1876,6 +1876,10 @@
         self.searchController.searchBar.delegate = self;
         self.searchController.searchBar.backgroundColor = [NCBrandColor sharedInstance].brand;
         
+        // Color Text "Cancel"
+        [[UIBarButtonItem appearanceWhenContainedInInstancesOfClasses:@[[UISearchBar class]]] setTintColor:[UIColor whiteColor]];
+
+        
         self.tableView.tableHeaderView = self.searchController.searchBar;
         [self.tableView setContentOffset:CGPointMake(0, self.searchController.searchBar.frame.size.height - self.tableView.contentOffset.y)];