diff --git a/Client/Frontend/Login Management/LoginListViewController.swift b/Client/Frontend/Login Management/LoginListViewController.swift index 43c2cf6cf3b1..80c5aaa5a7c4 100644 --- a/Client/Frontend/Login Management/LoginListViewController.swift +++ b/Client/Frontend/Login Management/LoginListViewController.swift @@ -190,10 +190,19 @@ class LoginListViewController: SensitiveViewController { selectionButton.setTitleColor(UIColor.theme.tableView.rowBackground, for: []) selectionButton.backgroundColor = UIColor.theme.general.highlightBlue - - let theme = BuiltinThemeName(rawValue: ThemeManager.instance.current.name) ?? .normal - if theme == .dark { - searchController.searchBar.barStyle = .black + + let isDarkTheme = ThemeManager.instance.currentName == .dark + let searchTextField = searchController.searchBar.searchTextField + if isDarkTheme { + searchTextField.defaultTextAttributes[NSAttributedString.Key.foregroundColor] = UIColor.white + } else { + searchTextField.defaultTextAttributes[NSAttributedString.Key.foregroundColor] = UIColor.black + } + + if let glassIconView = searchTextField.leftView as? UIImageView { + //Magnifying glass + glassIconView.image = glassIconView.image?.withRenderingMode(.alwaysTemplate) + glassIconView.tintColor = UIColor.theme.tableView.headerTextLight } }