Explorar el Código

fix dark mode

marinofaggiana hace 5 años
padre
commit
66bd678f79
Se han modificado 1 ficheros con 12 adiciones y 0 borrados
  1. 12 0
      iOSClient/Main/CCMain.m

+ 12 - 0
iOSClient/Main/CCMain.m

@@ -293,6 +293,12 @@
     if (searchButton && [searchButton isKindOfClass:[UIButton class]]) {
         [searchButton setTitleColor:NCBrandColor.sharedInstance.brandText forState:UIControlStateNormal];
     }
+    // color textview searchbbar
+    UITextField *searchTextView = [self.searchController.searchBar valueForKey:@"searchField"];
+    if (searchTextView && [searchTextView isKindOfClass:[UITextField class]]) {
+        searchTextView.backgroundColor = NCBrandColor.sharedInstance.backgroundForm;
+        searchTextView.textColor = NCBrandColor.sharedInstance.textView;
+    }
     
     // Title
     [self setTitle];
@@ -1288,6 +1294,12 @@
         if (searchButton && [searchButton isKindOfClass:[UIButton class]]) {
             [searchButton setTitleColor:NCBrandColor.sharedInstance.brandText forState:UIControlStateNormal];
         }
+        // color textview searchbbar
+        UITextField *searchTextView = [self.searchController.searchBar valueForKey:@"searchField"];
+        if (searchTextView && [searchTextView isKindOfClass:[UITextField class]]) {
+            searchTextView.backgroundColor = NCBrandColor.sharedInstance.backgroundForm;
+            searchTextView.textColor = NCBrandColor.sharedInstance.textView;
+        }
         
         self.tableView.tableHeaderView = self.searchController.searchBar;
         [self.tableView setContentOffset:CGPointMake(0, self.searchController.searchBar.frame.size.height - self.tableView.contentOffset.y)];