Skip to content

Commit

Permalink
Revert "Fix #6154 - Filter logins field has wrong text color in Light…
Browse files Browse the repository at this point in the history
… theme (#6251)" (#6329)

This reverts commit 6cbbc75.
  • Loading branch information
garvankeeley committed Mar 30, 2020
1 parent 948bcf9 commit 089219a
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions Client/Frontend/Login Management/LoginListViewController.swift
Expand Up @@ -190,19 +190,10 @@ class LoginListViewController: SensitiveViewController {

selectionButton.setTitleColor(UIColor.theme.tableView.rowBackground, for: [])
selectionButton.backgroundColor = UIColor.theme.general.highlightBlue

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

let theme = BuiltinThemeName(rawValue: ThemeManager.instance.current.name) ?? .normal
if theme == .dark {
searchController.searchBar.barStyle = .black
}
}

Expand Down

0 comments on commit 089219a

Please sign in to comment.