Commit 6fb3d2ed authored by Steven杜宇's avatar Steven杜宇

// UI

parent c0c1eadb
...@@ -61,7 +61,7 @@ class YHFileRenameInputView: UIView { ...@@ -61,7 +61,7 @@ class YHFileRenameInputView: UIView {
lazy var topLine: UIView = { lazy var topLine: UIView = {
let view = UIView() let view = UIView()
view.backgroundColor = .separatorColor view.backgroundColor = .brandGrayColor3
return view return view
}() }()
...@@ -76,7 +76,7 @@ class YHFileRenameInputView: UIView { ...@@ -76,7 +76,7 @@ class YHFileRenameInputView: UIView {
lazy var textField: UITextField = { lazy var textField: UITextField = {
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.brandGrayColor5])
textField.font = UIFont.PFSC_M(ofSize: 16) textField.font = UIFont.PFSC_M(ofSize: 16)
textField.tintColor = UIColor.brandMainColor textField.tintColor = UIColor.brandMainColor
textField.textColor = UIColor.mainTextColor textField.textColor = UIColor.mainTextColor
...@@ -120,7 +120,7 @@ class YHFileRenameInputView: UIView { ...@@ -120,7 +120,7 @@ class YHFileRenameInputView: UIView {
static func inputView(defalutText: String?, _ placeholde: String = "请输入文件名称", _ title: String = "文件重命名") -> YHFileRenameInputView { static func inputView(defalutText: String?, _ placeholde: String = "请输入文件名称", _ title: String = "文件重命名") -> YHFileRenameInputView {
let view = YHFileRenameInputView(frame: CGRect(x: 0, y: 0, width: KScreenWidth, height: Self.height)) let view = YHFileRenameInputView(frame: CGRect(x: 0, y: 0, width: KScreenWidth, height: Self.height))
view.textField.text = defalutText view.textField.text = defalutText
view.textField.attributedPlaceholder = NSAttributedString(string: placeholde, attributes: [NSAttributedString.Key.foregroundColor: UIColor.placeHolderColor]) view.textField.attributedPlaceholder = NSAttributedString(string: placeholde, attributes: [NSAttributedString.Key.foregroundColor: UIColor.brandGrayColor5])
view.titleLabel.text = title view.titleLabel.text = title
if placeholde == "请输入10字以内的标签" { if placeholde == "请输入10字以内的标签" {
view.maxWordsCount = 10 view.maxWordsCount = 10
......
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