Commit f7ce2c78 authored by David黄金龙's avatar David黄金龙

修改 主品牌色

parent 79533e39
...@@ -39,7 +39,7 @@ class YHSearchInfoBar: UIView { ...@@ -39,7 +39,7 @@ class YHSearchInfoBar: UIView {
textField.backgroundColor = .clear textField.backgroundColor = .clear
textField.attributedPlaceholder = NSAttributedString(string: "香港身份".local, attributes: [NSAttributedString.Key.foregroundColor : UIColor(hex: 0x94A3B8)]) textField.attributedPlaceholder = NSAttributedString(string: "香港身份".local, attributes: [NSAttributedString.Key.foregroundColor : UIColor(hex: 0x94A3B8)])
textField.font = UIFont.PFSC_M(ofSize: 12) textField.font = UIFont.PFSC_M(ofSize: 12)
textField.tintColor = UIColor(hex: 0x3570DC) textField.tintColor = UIColor.brandMainColor
textField.textColor = UIColor(hexString: "#121A26") textField.textColor = UIColor(hexString: "#121A26")
textField.clearButtonMode = .whileEditing textField.clearButtonMode = .whileEditing
textField.addTarget(self, action: #selector(textFieldChanged(textField:)), for: .editingChanged) textField.addTarget(self, action: #selector(textFieldChanged(textField:)), for: .editingChanged)
...@@ -52,7 +52,7 @@ class YHSearchInfoBar: UIView { ...@@ -52,7 +52,7 @@ class YHSearchInfoBar: UIView {
btn.setTitle("搜索".local, for: .normal) btn.setTitle("搜索".local, for: .normal)
btn.titleLabel?.font = UIFont.PFSC_R(ofSize: 12) btn.titleLabel?.font = UIFont.PFSC_R(ofSize: 12)
btn.setTitleColor(.white, for: .normal) btn.setTitleColor(.white, for: .normal)
btn.backgroundColor = UIColor(hexString: "#3570DC") btn.backgroundColor = UIColor.brandMainColor
btn.addTarget(self, action: #selector(searchBtnClicked), for: .touchUpInside) btn.addTarget(self, action: #selector(searchBtnClicked), for: .touchUpInside)
return btn return btn
}() }()
......
...@@ -91,7 +91,7 @@ class YHSearchInfoCell: UITableViewCell { ...@@ -91,7 +91,7 @@ class YHSearchInfoCell: UITableViewCell {
// 设置高亮样式 // 设置高亮样式
let highlightAttributes: [NSAttributedString.Key: Any] = [ let highlightAttributes: [NSAttributedString.Key: Any] = [
.foregroundColor: UIColor(hex: 0x3570DC) .foregroundColor: UIColor.brandMainColor
] ]
let ranges = findOccurrencesOfString(text, inString:self.model.title) let ranges = findOccurrencesOfString(text, inString:self.model.title)
......
...@@ -90,7 +90,7 @@ class YHServiceViewController: YHBaseViewController { ...@@ -90,7 +90,7 @@ class YHServiceViewController: YHBaseViewController {
//配置指示器 //配置指示器
let indicator = JXSegmentedIndicatorLineView() let indicator = JXSegmentedIndicatorLineView()
indicator.indicatorWidth = 16 indicator.indicatorWidth = 16
indicator.indicatorColor = UIColor(hex: 0x3570dc) indicator.indicatorColor = UIColor.brandMainColor
segmentedView.indicators = [indicator] segmentedView.indicators = [indicator]
segmentedView.backgroundColor = UIColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1) segmentedView.backgroundColor = UIColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1)
......
...@@ -122,7 +122,7 @@ class YHServiceSectionCollectionViewCell: UICollectionViewCell { ...@@ -122,7 +122,7 @@ class YHServiceSectionCollectionViewCell: UICollectionViewCell {
static let cellReuseIdentifier = "YHServiceSectionCollectionViewCell" static let cellReuseIdentifier = "YHServiceSectionCollectionViewCell"
func setSelectedStyle() { func setSelectedStyle() {
contentView.backgroundColor = UIColor(hex: 0x3570dc) contentView.backgroundColor = UIColor.brandMainColor
descripeLable.textColor = UIColor.white descripeLable.textColor = UIColor.white
} }
......
...@@ -329,7 +329,7 @@ extension YHMessageListVC: UITableViewDelegate, UITableViewDataSource { ...@@ -329,7 +329,7 @@ extension YHMessageListVC: UITableViewDelegate, UITableViewDataSource {
} }
let view = UIView() let view = UIView()
let contentview = UIView() let contentview = UIView()
contentview.backgroundColor = UIColor(hex: 0x3570DC, alpha: 0.06) contentview.backgroundColor = UIColor.brandMainColor6
view.addSubview(contentview) view.addSubview(contentview)
contentview.snp.makeConstraints { make in contentview.snp.makeConstraints { make in
make.left.right.top.equalToSuperview() make.left.right.top.equalToSuperview()
...@@ -345,7 +345,7 @@ extension YHMessageListVC: UITableViewDelegate, UITableViewDataSource { ...@@ -345,7 +345,7 @@ extension YHMessageListVC: UITableViewDelegate, UITableViewDataSource {
let enableBtn = UIButton() let enableBtn = UIButton()
enableBtn.setTitle("开启".local, for: .normal) enableBtn.setTitle("开启".local, for: .normal)
enableBtn.setTitleColor(UIColor(hex: 0x3570DC), for: .normal) enableBtn.setTitleColor(UIColor.brandMainColor, for: .normal)
enableBtn.titleLabel?.font = .PFSC_R(ofSize: 13) enableBtn.titleLabel?.font = .PFSC_R(ofSize: 13)
enableBtn.YH_clickEdgeInsets = UIEdgeInsets(top: 12, left: 20, bottom: 12, right: 20) enableBtn.YH_clickEdgeInsets = UIEdgeInsets(top: 12, left: 20, bottom: 12, right: 20)
enableBtn.addTarget(self, action: #selector(didEnableNotifyBtnClicked), for: .touchUpInside) enableBtn.addTarget(self, action: #selector(didEnableNotifyBtnClicked), for: .touchUpInside)
......
...@@ -125,7 +125,7 @@ class YHDetailMessageCell: UITableViewCell { ...@@ -125,7 +125,7 @@ class YHDetailMessageCell: UITableViewCell {
bottomBtn = UIButton() bottomBtn = UIButton()
bottomBtn.isUserInteractionEnabled = false bottomBtn.isUserInteractionEnabled = false
bottomBtn.setTitle("去填写".local, for: .normal) bottomBtn.setTitle("去填写".local, for: .normal)
bottomBtn.setTitleColor(UIColor(hex: 0x3570DC), for: .normal) bottomBtn.setTitleColor(UIColor.brandMainColor, for: .normal)
bottomBtn.titleLabel?.font = .PFSC_R(ofSize: 14) bottomBtn.titleLabel?.font = .PFSC_R(ofSize: 14)
bottomBtn.addTarget(self, action: #selector(didBottomBtnClicked), for: .touchUpInside) bottomBtn.addTarget(self, action: #selector(didBottomBtnClicked), for: .touchUpInside)
whiteView.addSubview(bottomBtn) whiteView.addSubview(bottomBtn)
...@@ -182,7 +182,7 @@ class YHDetailMessageCell: UITableViewCell { ...@@ -182,7 +182,7 @@ class YHDetailMessageCell: UITableViewCell {
let text1: ASAttributedString = .init("林先生,您好,您尚有20%内容未填写,请到", .font(UIFont.PFSC_R(ofSize: 14)), .foreground(UIColor(hex: 0x121A26, alpha: 0.7))) let text1: ASAttributedString = .init("林先生,您好,您尚有20%内容未填写,请到", .font(UIFont.PFSC_R(ofSize: 14)), .foreground(UIColor(hex: 0x121A26, alpha: 0.7)))
let text2: ASAttributedString = .init("服务中心-资料上传", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor(hex: 0x3570DC)), .action { let text2: ASAttributedString = .init("服务中心-资料上传", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor.brandMainColor), .action {
}) })
let text3: ASAttributedString = .init("去填写,请您尽快完成~", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor(hex: 0x121A26, alpha: 0.7))) let text3: ASAttributedString = .init("去填写,请您尽快完成~", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor(hex: 0x121A26, alpha: 0.7)))
......
...@@ -11,17 +11,20 @@ import UIKit ...@@ -11,17 +11,20 @@ import UIKit
extension UIColor { extension UIColor {
//品牌主 //主品牌
static let brandMainColor : UIColor = UIColor(hexString: "#3570DC")! static let brandMainColor : UIColor = UIColor(hexString: "#0046B4")!
//品牌渐变色 //品牌渐变色
static let arrBrandGradaterColors : [UIColor] = [UIColor(hexString: "#3570DC")!,UIColor(hexString: "#3A85FC")!] static let arrBrandGradaterColors : [UIColor] = [UIColor(hexString: "#0046B4")!,UIColor(hexString: "#0046B4")!]
//品牌主色 16 //品牌主色 16
static let brandMainColor16 : UIColor = UIColor(hexString: "#2F7EF6",transparency: 0.16)! static let brandMainColor16 : UIColor = UIColor(hexString: "#0046B4",transparency: 0.16)!
//品牌主色 8 //品牌主色 8
static let brandMainColor8: UIColor = UIColor(hexString: "#2F7EF6",transparency: 0.08)! static let brandMainColor8: UIColor = UIColor(hexString: "#0046B4",transparency: 0.08)!
//品牌主色 6
static let brandMainColor6: UIColor = UIColor(hexString: "#0046B4",transparency: 0.06)!
//标题/主内容 //标题/主内容
static let mainTextColor : UIColor = UIColor(hexString: "#222222")! static let mainTextColor : UIColor = UIColor(hexString: "#222222")!
......
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