Browse Source
* PS-587 Fix searchbar search textfield and icon colors for dark themes * PS-587 - PR correctionsgithub-services/pull/1939/head
3 changed files with 22 additions and 4 deletions
@ -0,0 +1,20 @@
@@ -0,0 +1,20 @@
|
||||
using UIKit; |
||||
|
||||
namespace Bit.iOS.Core.Utilities |
||||
{ |
||||
public static class UISearchBarExtensions |
||||
{ |
||||
public static void UpdateThemeIfNeeded(this UISearchBar searchBar) |
||||
{ |
||||
if (!ThemeHelpers.LightTheme) |
||||
{ |
||||
searchBar.KeyboardAppearance = UIKeyboardAppearance.Dark; |
||||
if (UIDevice.CurrentDevice.CheckSystemVersion(13, 0)) |
||||
{ |
||||
searchBar.SearchTextField.TextColor = UIColor.White; |
||||
searchBar.SearchTextField.LeftView.TintColor = UIColor.White; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
Loading…
Reference in new issue