fix: make seeAll button and clear button highlight when user tapping

This commit is contained in:
sunxiaojian 2021-04-08 16:12:04 +08:00
parent 5c7a13e6b3
commit ae20a29013
2 changed files with 4 additions and 4 deletions

View File

@ -99,8 +99,8 @@ final class SearchViewController: UIViewController, NeedsDependency {
return label return label
}() }()
let clearSearchHistoryButton: UIButton = { let clearSearchHistoryButton: HighlightDimmableButton = {
let button = UIButton(type: .custom) let button = HighlightDimmableButton(type: .custom)
button.setTitleColor(Asset.Colors.brandBlue.color, for: .normal) button.setTitleColor(Asset.Colors.brandBlue.color, for: .normal)
button.setTitle(L10n.Scene.Search.Searching.clear, for: .normal) button.setTitle(L10n.Scene.Search.Searching.clear, for: .normal)
return button return button

View File

@ -25,8 +25,8 @@ class SearchRecommendCollectionHeader: UIView {
return label return label
}() }()
let seeAllButton: UIButton = { let seeAllButton: HighlightDimmableButton = {
let button = UIButton(type: .custom) let button = HighlightDimmableButton(type: .custom)
button.setTitleColor(Asset.Colors.brandBlue.color, for: .normal) button.setTitleColor(Asset.Colors.brandBlue.color, for: .normal)
button.setTitle(L10n.Scene.Search.Recommend.buttonText, for: .normal) button.setTitle(L10n.Scene.Search.Recommend.buttonText, for: .normal)
return button return button