Commit 9607d904 authored by David黄金龙's avatar David黄金龙

颜色值替换

parent 10ec02cd
...@@ -115,7 +115,7 @@ class YHFormPickerView: UIView { ...@@ -115,7 +115,7 @@ class YHFormPickerView: UIView {
let btn = UIButton() let btn = UIButton()
btn.setTitle("取消".local, for: .normal) btn.setTitle("取消".local, for: .normal)
btn.titleLabel?.font = UIFont.PFSC_R(ofSize: 14) btn.titleLabel?.font = UIFont.PFSC_R(ofSize: 14)
btn.setTitleColor(UIColor(hex: 0x222222), for: .normal) btn.setTitleColor(UIColor.mainTextColor, for: .normal)
btn.addTarget(self, action: #selector(didClickCancelButton), for: .touchUpInside) btn.addTarget(self, action: #selector(didClickCancelButton), for: .touchUpInside)
return btn return btn
}() }()
......
...@@ -89,7 +89,7 @@ class YHFormItemExpireDateCell: UITableViewCell { ...@@ -89,7 +89,7 @@ class YHFormItemExpireDateCell: UITableViewCell {
let btn = UIButton(type: .custom) let btn = UIButton(type: .custom)
btn.setTitle("长期".local, for: .normal) btn.setTitle("长期".local, for: .normal)
btn.titleLabel?.font = UIFont.PFSC_R(ofSize: 14) btn.titleLabel?.font = UIFont.PFSC_R(ofSize: 14)
btn.setTitleColor(UIColor(hex: 0x222222), for: .normal) btn.setTitleColor(UIColor.mainTextColor, for: .normal)
btn.iconInLeft(spacing: 6) btn.iconInLeft(spacing: 6)
btn.setImage(UIImage(named: "form_square_unselect"), for: .normal) btn.setImage(UIImage(named: "form_square_unselect"), for: .normal)
btn.setImage(UIImage(named: "form_square_select"), for: .selected) btn.setImage(UIImage(named: "form_square_select"), for: .selected)
......
...@@ -75,7 +75,7 @@ class YHSelectCountryViewController: YHBaseViewController { ...@@ -75,7 +75,7 @@ class YHSelectCountryViewController: YHBaseViewController {
flagLabel = { flagLabel = {
let label = UILabel() let label = UILabel()
label.text = "热门国家/地区" label.text = "热门国家/地区"
label.textColor = UIColor(hex: 0x222222) label.textColor = UIColor.mainTextColor
label.font = UIFont.PFSC_R(ofSize: 14) label.font = UIFont.PFSC_R(ofSize: 14)
return label return label
}() }()
...@@ -200,7 +200,7 @@ class YHCountryCollectionViewCell: UICollectionViewCell { ...@@ -200,7 +200,7 @@ class YHCountryCollectionViewCell: UICollectionViewCell {
let view = UILabel() let view = UILabel()
view.textAlignment = .center view.textAlignment = .center
view.font = UIFont.PFSC_R(ofSize: 13) view.font = UIFont.PFSC_R(ofSize: 13)
view.textColor = UIColor(hex: 0x222222) view.textColor = UIColor.mainTextColor
view.backgroundColor = UIColor(hex: 0xf8f9fb) view.backgroundColor = UIColor(hex: 0xf8f9fb)
view.layer.masksToBounds = true view.layer.masksToBounds = true
view.layer.cornerRadius = 16 view.layer.cornerRadius = 16
......
...@@ -182,7 +182,7 @@ class YHCardExampleView: UIView { ...@@ -182,7 +182,7 @@ class YHCardExampleView: UIView {
} }
let label = UILabel() let label = UILabel()
label.text = array[i] label.text = array[i]
label.textColor = UIColor(hex: 0x222222) label.textColor = UIColor.mainTextColor
label.font = UIFont.PFSC_R(ofSize: 14) label.font = UIFont.PFSC_R(ofSize: 14)
centerView.addSubview(label) centerView.addSubview(label)
label.snp.makeConstraints { make in label.snp.makeConstraints { make in
......
...@@ -85,7 +85,7 @@ class YHItemView: UIView { ...@@ -85,7 +85,7 @@ class YHItemView: UIView {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex: 0x4487f9).withAlphaComponent(0.08) button.backgroundColor = UIColor(hex: 0x4487f9).withAlphaComponent(0.08)
button.setTitleColor(UIColor(hex: 0x4487f9), for: .selected) button.setTitleColor(UIColor(hex: 0x4487f9), for: .selected)
button.setTitleColor(UIColor(hex: 0x222222), for: .normal) button.setTitleColor(UIColor.mainTextColor, for: .normal)
button.layer.cornerRadius = 16 button.layer.cornerRadius = 16
button.layer.borderWidth = 1 button.layer.borderWidth = 1
button.layer.borderColor = UIColor(hex: 0x4487f9).cgColor button.layer.borderColor = UIColor(hex: 0x4487f9).cgColor
...@@ -105,7 +105,7 @@ class YHItemView: UIView { ...@@ -105,7 +105,7 @@ class YHItemView: UIView {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex: 0xf8f9fb) button.backgroundColor = UIColor(hex: 0xf8f9fb)
button.setTitleColor(UIColor(hex: 0x4487f9), for: .selected) button.setTitleColor(UIColor(hex: 0x4487f9), for: .selected)
button.setTitleColor(UIColor(hex: 0x222222), for: .normal) button.setTitleColor(UIColor.mainTextColor, for: .normal)
button.layer.cornerRadius = 16 button.layer.cornerRadius = 16
button.addTarget(self, action: #selector(leftClick), for: .touchUpInside) button.addTarget(self, action: #selector(leftClick), for: .touchUpInside)
return button return button
......
...@@ -126,7 +126,7 @@ class YHOtherPickerView: UIView { ...@@ -126,7 +126,7 @@ class YHOtherPickerView: UIView {
let btn = UIButton() let btn = UIButton()
btn.setTitle("取消".local, for: .normal) btn.setTitle("取消".local, for: .normal)
btn.titleLabel?.font = UIFont.PFSC_R(ofSize: 14) btn.titleLabel?.font = UIFont.PFSC_R(ofSize: 14)
btn.setTitleColor(UIColor(hex: 0x222222), for: .normal) btn.setTitleColor(UIColor.mainTextColor, for: .normal)
btn.addTarget(self, action: #selector(didClickCancelButton), for: .touchUpInside) btn.addTarget(self, action: #selector(didClickCancelButton), for: .touchUpInside)
return btn return btn
}() }()
......
...@@ -137,7 +137,7 @@ extension YHPersonInfoCommonCell { ...@@ -137,7 +137,7 @@ extension YHPersonInfoCommonCell {
for (index0,item0) in arrData.enumerated() { for (index0,item0) in arrData.enumerated() {
let lable = UILabel() let lable = UILabel()
lable.text = item0.cellTitle lable.text = item0.cellTitle
lable.textColor = UIColor(hex: 0x222222) lable.textColor = UIColor.mainTextColor
lable.font = UIFont.PFSC_M(ofSize: 14) lable.font = UIFont.PFSC_M(ofSize: 14)
holdView.addSubview(lable) holdView.addSubview(lable)
lable.snp.makeConstraints { make in lable.snp.makeConstraints { make in
......
...@@ -40,7 +40,7 @@ class YHWorkIntroductionViewController: YHBaseViewController { ...@@ -40,7 +40,7 @@ class YHWorkIntroductionViewController: YHBaseViewController {
let array = ["项目名称", "项目时间", "项目业绩/亮点"] let array = ["项目名称", "项目时间", "项目业绩/亮点"]
for i in 0..<array.count { for i in 0..<array.count {
let label = UILabel() let label = UILabel()
label.textColor = UIColor(hex: 0x222222) label.textColor = UIColor.mainTextColor
label.font = UIFont.PFSC_R(ofSize: 14) label.font = UIFont.PFSC_R(ofSize: 14)
label.text = array[i] label.text = array[i]
view.addSubview(label) view.addSubview(label)
...@@ -136,7 +136,7 @@ class YHWorkIntroductionViewController: YHBaseViewController { ...@@ -136,7 +136,7 @@ class YHWorkIntroductionViewController: YHBaseViewController {
} }
let lineView = UIView() let lineView = UIView()
lineView.backgroundColor = UIColor(hex: 0x222222) lineView.backgroundColor = UIColor.mainTextColor
view.addSubview(lineView) view.addSubview(lineView)
lineView.snp.makeConstraints { make in lineView.snp.makeConstraints { make in
make.centerY.equalTo(startTextField.snp.centerY) make.centerY.equalTo(startTextField.snp.centerY)
......
...@@ -70,7 +70,7 @@ class YHWorkExampleTypeView: UIView { ...@@ -70,7 +70,7 @@ class YHWorkExampleTypeView: UIView {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.setTitle(dataSource[i], for: .normal) button.setTitle(dataSource[i], for: .normal)
button.setTitleColor(UIColor(hex: 0x222222), for: .normal) button.setTitleColor(UIColor.mainTextColor, for: .normal)
button.setBackgroundColor(color: UIColor(hex: 0xf8f9fb), forState: .normal) button.setBackgroundColor(color: UIColor(hex: 0xf8f9fb), forState: .normal)
button.titleLabel?.font = UIFont.PFSC_R(ofSize: 13) button.titleLabel?.font = UIFont.PFSC_R(ofSize: 13)
button.layer.cornerRadius = 16 button.layer.cornerRadius = 16
......
...@@ -83,7 +83,7 @@ class YHWorkExperienceItemView: UIView { ...@@ -83,7 +83,7 @@ class YHWorkExperienceItemView: UIView {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex: 0x4487f9).withAlphaComponent(0.08) button.backgroundColor = UIColor(hex: 0x4487f9).withAlphaComponent(0.08)
button.setTitleColor(UIColor(hex: 0x4487f9), for: .selected) button.setTitleColor(UIColor(hex: 0x4487f9), for: .selected)
button.setTitleColor(UIColor(hex: 0x222222), for: .normal) button.setTitleColor(UIColor.mainTextColor, for: .normal)
button.layer.cornerRadius = 16 button.layer.cornerRadius = 16
button.layer.borderWidth = 1 button.layer.borderWidth = 1
button.layer.borderColor = UIColor(hex: 0x4487f9).cgColor button.layer.borderColor = UIColor(hex: 0x4487f9).cgColor
...@@ -103,7 +103,7 @@ class YHWorkExperienceItemView: UIView { ...@@ -103,7 +103,7 @@ class YHWorkExperienceItemView: UIView {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex: 0xf8f9fb) button.backgroundColor = UIColor(hex: 0xf8f9fb)
button.setTitleColor(UIColor(hex: 0x4487f9), for: .selected) button.setTitleColor(UIColor(hex: 0x4487f9), for: .selected)
button.setTitleColor(UIColor(hex: 0x222222), for: .normal) button.setTitleColor(UIColor.mainTextColor, for: .normal)
button.layer.cornerRadius = 16 button.layer.cornerRadius = 16
button.addTarget(self, action: #selector(leftClick), for: .touchUpInside) button.addTarget(self, action: #selector(leftClick), for: .touchUpInside)
return button return button
......
...@@ -141,7 +141,7 @@ class YHWorkHighlightsTableViewCell: UITableViewCell { ...@@ -141,7 +141,7 @@ class YHWorkHighlightsTableViewCell: UITableViewCell {
detailLabel = { detailLabel = {
let label = UILabel() let label = UILabel()
label.text = "项目详细介绍" label.text = "项目详细介绍"
label.textColor = UIColor(hex: 0x222222) label.textColor = UIColor.mainTextColor
label.font = UIFont.PFSC_R(ofSize: 14) label.font = UIFont.PFSC_R(ofSize: 14)
return label return label
}() }()
......
...@@ -107,7 +107,7 @@ class YHWorkMessageSelectTableViewCell: UITableViewCell { ...@@ -107,7 +107,7 @@ class YHWorkMessageSelectTableViewCell: UITableViewCell {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex: 0x2f7ef6).withAlphaComponent(0.08) button.backgroundColor = UIColor(hex: 0x2f7ef6).withAlphaComponent(0.08)
button.setTitleColor(UIColor(hex: 0x2f7ef6), for: .selected) button.setTitleColor(UIColor(hex: 0x2f7ef6), for: .selected)
button.setTitleColor(UIColor(hex: 0x222222), for: .normal) button.setTitleColor(UIColor.mainTextColor, for: .normal)
button.setTitle("是", for: .normal) button.setTitle("是", for: .normal)
button.titleLabel?.font = UIFont.PFSC_R(ofSize: 13) button.titleLabel?.font = UIFont.PFSC_R(ofSize: 13)
button.layer.cornerRadius = 16 button.layer.cornerRadius = 16
...@@ -129,7 +129,7 @@ class YHWorkMessageSelectTableViewCell: UITableViewCell { ...@@ -129,7 +129,7 @@ class YHWorkMessageSelectTableViewCell: UITableViewCell {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex: 0xf8f9fb) button.backgroundColor = UIColor(hex: 0xf8f9fb)
button.setTitleColor(UIColor(hex: 0x2f7ef6), for: .selected) button.setTitleColor(UIColor(hex: 0x2f7ef6), for: .selected)
button.setTitleColor(UIColor(hex: 0x222222), for: .normal) button.setTitleColor(UIColor.mainTextColor, for: .normal)
button.setTitle("否", for: .normal) button.setTitle("否", for: .normal)
button.titleLabel?.font = UIFont.PFSC_R(ofSize: 13) button.titleLabel?.font = UIFont.PFSC_R(ofSize: 13)
button.layer.cornerRadius = 16 button.layer.cornerRadius = 16
......
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