Commit 185f22d1 authored by Steven杜宇's avatar Steven杜宇

// 搜索框更新

parent bcf026ef
...@@ -17,7 +17,7 @@ class YHCollegeNameCell: UITableViewCell { ...@@ -17,7 +17,7 @@ class YHCollegeNameCell: UITableViewCell {
label.textColor = .mainTextColor label.textColor = .mainTextColor
label.textAlignment = .left label.textAlignment = .left
label.numberOfLines = 0 label.numberOfLines = 0
label.font = UIFont.PFSC_B(ofSize: 14) label.font = UIFont.PFSC_R(ofSize: 14)
return label return label
}() }()
......
...@@ -25,7 +25,7 @@ class YHCollegeSearchBar: UIView, UITextFieldDelegate { ...@@ -25,7 +25,7 @@ class YHCollegeSearchBar: UIView, UITextFieldDelegate {
private lazy var contentView = { private lazy var contentView = {
let view = UIView() let view = UIView()
view.backgroundColor = .contentBkgColor view.backgroundColor = .contentBkgColor
view.layer.cornerRadius = Self.height/2.0 // view.layer.cornerRadius = Self.height/2.0
view.clipsToBounds = true view.clipsToBounds = true
return view return view
}() }()
...@@ -34,7 +34,7 @@ class YHCollegeSearchBar: UIView, UITextFieldDelegate { ...@@ -34,7 +34,7 @@ class YHCollegeSearchBar: UIView, UITextFieldDelegate {
let textField = UITextField() let textField = UITextField()
textField.backgroundColor = .clear textField.backgroundColor = .clear
textField.attributedPlaceholder = NSAttributedString(string: "请输入学校全称", attributes: [NSAttributedString.Key.foregroundColor : UIColor.placeHolderColor]) textField.attributedPlaceholder = NSAttributedString(string: "请输入学校全称", attributes: [NSAttributedString.Key.foregroundColor : UIColor.placeHolderColor])
textField.font = UIFont.PFSC_M(ofSize: 12) textField.font = UIFont.PFSC_R(ofSize: 14)
textField.tintColor = UIColor.brandMainColor textField.tintColor = UIColor.brandMainColor
textField.textColor = UIColor.mainTextColor textField.textColor = UIColor.mainTextColor
textField.delegate = self textField.delegate = self
...@@ -44,10 +44,10 @@ class YHCollegeSearchBar: UIView, UITextFieldDelegate { ...@@ -44,10 +44,10 @@ class YHCollegeSearchBar: UIView, UITextFieldDelegate {
lazy var confirmBtn: UIButton = { lazy var confirmBtn: UIButton = {
let btn = UIButton() let btn = UIButton()
btn.setTitle("确认".local, for: .normal) btn.setTitle("确认".local, for: .normal)
btn.titleLabel?.font = UIFont.PFSC_M(ofSize: 12) btn.titleLabel?.font = UIFont.PFSC_M(ofSize: 14)
btn.setTitleColor(.white, for: .normal) btn.setTitleColor(.white, for: .normal)
btn.backgroundColor = UIColor.brandMainColor btn.backgroundColor = UIColor.brandMainColor
btn.layer.cornerRadius = Self.confirmBtnHeight/2.0 // btn.layer.cornerRadius = Self.confirmBtnHeight/2.0
btn.addTarget(self, action: #selector(confirmBtnClicked), for: .touchUpInside) btn.addTarget(self, action: #selector(confirmBtnClicked), for: .touchUpInside)
return btn return btn
}() }()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment