|
@@ -28,10 +28,11 @@ public class PQStuckPointMaterialController: PQBaseViewController {
|
|
|
lazy var changeCollecBtn: UIButton = {
|
|
|
let changeCollecBtn = UIButton(frame: CGRect(x: cDefaultMargin * 5, y: cDevice_iPhoneStatusBarHei, width: cScreenWidth - cDefaultMargin * 10, height: cDefaultMargin * 4))
|
|
|
changeCollecBtn.titleLabel?.lineBreakMode = .byTruncatingTail
|
|
|
+ changeCollecBtn.tintColor = PQBFConfig.shared.styleTitleColor
|
|
|
changeCollecBtn.setTitle("全部", for: .normal)
|
|
|
- changeCollecBtn.setImage(UIImage.init().BF_Image(named: "icon_selected_down"), for: .normal)
|
|
|
- changeCollecBtn.setImage(UIImage.init().BF_Image(named: "icon_selected_up"), for: .selected)
|
|
|
- changeCollecBtn.setTitleColor(UIColor.white, for: .selected)
|
|
|
+ changeCollecBtn.setImage(UIImage.init().BF_Image(named: "icon_selected_down").withRenderingMode(.alwaysTemplate), for: .normal)
|
|
|
+ changeCollecBtn.setImage(UIImage.init().BF_Image(named: "icon_selected_up").withRenderingMode(.alwaysTemplate), for: .selected)
|
|
|
+ changeCollecBtn.setTitleColor(PQBFConfig.shared.styleTitleColor, for: .normal)
|
|
|
changeCollecBtn.titleLabel?.font = UIFont.systemFont(ofSize: 18, weight: .medium)
|
|
|
changeCollecBtn.tag = 1
|
|
|
changeCollecBtn.imagePosition(at: .right, space: cDefaultMargin / 2)
|
|
@@ -55,7 +56,7 @@ public class PQStuckPointMaterialController: PQBaseViewController {
|
|
|
lazy var choseLocalAllBtn: UIButton = {
|
|
|
let choseLocalAllBtn = UIButton(frame: CGRect(x: (view.frame.width - choseBtnW * 3) / 4, y: cDevice_iPhoneNavBarAndStatusBarHei + margin, width: choseBtnW, height: choseBtnH))
|
|
|
choseLocalAllBtn.setTitleColor(UIColor.hexColor(hexadecimal: "#999999"), for: .normal)
|
|
|
- choseLocalAllBtn.setTitleColor(UIColor.white, for: .selected)
|
|
|
+ choseLocalAllBtn.setTitleColor(PQBFConfig.shared.styleTitleColor, for: .selected)
|
|
|
choseLocalAllBtn.setTitle("全部", for: .normal)
|
|
|
choseLocalAllBtn.titleLabel?.font = UIFont.systemFont(ofSize: 17)
|
|
|
choseLocalAllBtn.addCorner(corner: 6)
|
|
@@ -67,7 +68,7 @@ public class PQStuckPointMaterialController: PQBaseViewController {
|
|
|
lazy var choseLocalVideoBtn: UIButton = {
|
|
|
let choseLocalVideoBtn = UIButton(frame: CGRect(x: choseLocalAllBtn.frame.maxX + (view.frame.width - choseBtnW * 3) / 4, y: choseLocalAllBtn.frame.minY, width: choseBtnW, height: choseBtnH))
|
|
|
choseLocalVideoBtn.setTitleColor(UIColor.hexColor(hexadecimal: "#999999"), for: .normal)
|
|
|
- choseLocalVideoBtn.setTitleColor(UIColor.white, for: .selected)
|
|
|
+ choseLocalVideoBtn.setTitleColor(PQBFConfig.shared.styleTitleColor, for: .selected)
|
|
|
choseLocalVideoBtn.setTitle("视频", for: .normal)
|
|
|
choseLocalVideoBtn.titleLabel?.font = UIFont.systemFont(ofSize: 17)
|
|
|
choseLocalVideoBtn.addCorner(corner: 6)
|
|
@@ -80,7 +81,7 @@ public class PQStuckPointMaterialController: PQBaseViewController {
|
|
|
lazy var choseLocalImageBtn: UIButton = {
|
|
|
let choseLocalImageBtn = UIButton(frame: CGRect(x: choseLocalVideoBtn.frame.maxX + (view.frame.width - choseBtnW * 3) / 4, y: choseLocalAllBtn.frame.minY, width: choseBtnW, height: choseBtnH))
|
|
|
choseLocalImageBtn.setTitleColor(UIColor.hexColor(hexadecimal: "#999999"), for: .normal)
|
|
|
- choseLocalImageBtn.setTitleColor(UIColor.white, for: .selected)
|
|
|
+ choseLocalImageBtn.setTitleColor(PQBFConfig.shared.styleTitleColor, for: .selected)
|
|
|
choseLocalImageBtn.setTitle("照片", for: .normal)
|
|
|
choseLocalImageBtn.titleLabel?.font = UIFont.systemFont(ofSize: 17)
|
|
|
choseLocalImageBtn.addCorner(corner: 6)
|
|
@@ -106,14 +107,14 @@ public class PQStuckPointMaterialController: PQBaseViewController {
|
|
|
// 底部操作视图
|
|
|
lazy var bottomRemindView: UIView = {
|
|
|
let bottomRemindView = UIView(frame: CGRect(x: 0, y: view.frame.height - (bottomH + cSafeAreaHeight), width: view.frame.width, height: bottomH + cSafeAreaHeight))
|
|
|
- bottomRemindView.backgroundColor = UIColor.hexColor(hexadecimal: "#191919")
|
|
|
+ bottomRemindView.backgroundColor = PQBFConfig.shared.styleBackGroundColor
|
|
|
return bottomRemindView
|
|
|
}()
|
|
|
|
|
|
// 确定按钮
|
|
|
lazy var confirmBtn: UIButton = {
|
|
|
let confirmBtn = UIButton(frame: CGRect(x: bottomRemindView.frame.width - cDefaultMargin * 9 - margin, y: margin / 2, width: cDefaultMargin * 9, height: bottomH - margin))
|
|
|
- confirmBtn.backgroundColor = UIColor.hexColor(hexadecimal: "#333333")
|
|
|
+ confirmBtn.backgroundColor = UIColor.hexColor(hexadecimal: "#F2F2F2")
|
|
|
// confirmBtn.backgroundColor = UIColor.hexColor(hexadecimal: "#EE0051")
|
|
|
confirmBtn.setTitle("确定", for: .normal)
|
|
|
confirmBtn.setTitleColor(UIColor.hexColor(hexadecimal: "#999999"), for: .normal)
|
|
@@ -131,7 +132,7 @@ public class PQStuckPointMaterialController: PQBaseViewController {
|
|
|
let bottomRemindLab = UILabel(frame: CGRect(x: margin, y: 0, width: bottomRemindView.frame.width - margin * 3 - confirmBtn.frame.width, height: bottomH))
|
|
|
bottomRemindLab.attributedText = NSAttributedString(string: "至少选择 1 个视频或 2 张照片")
|
|
|
bottomRemindLab.textAlignment = .left
|
|
|
- bottomRemindLab.textColor = UIColor.white
|
|
|
+ bottomRemindLab.textColor = PQBFConfig.shared.styleTitleColor
|
|
|
bottomRemindLab.font = UIFont.systemFont(ofSize: 14, weight: .medium)
|
|
|
return bottomRemindLab
|
|
|
}()
|
|
@@ -198,10 +199,10 @@ public class PQStuckPointMaterialController: PQBaseViewController {
|
|
|
|
|
|
public override func viewDidLoad() {
|
|
|
super.viewDidLoad()
|
|
|
- view.backgroundColor = UIColor.hexColor(hexadecimal: "#191919")
|
|
|
- navHeadImageView?.backgroundColor = UIColor.hexColor(hexadecimal: "#191919")
|
|
|
- lineView?.backgroundColor = UIColor.hexColor(hexadecimal: "#191919")
|
|
|
- leftButton(image: "upload_delete")
|
|
|
+ view.backgroundColor = PQBFConfig.shared.styleBackGroundColor
|
|
|
+ navHeadImageView?.backgroundColor = PQBFConfig.shared.styleBackGroundColor
|
|
|
+ lineView?.backgroundColor = PQBFConfig.shared.styleBackGroundColor
|
|
|
+ leftButton(image: "upload_delete",tintColor: PQBFConfig.shared.styleTitleColor)
|
|
|
navHeadImageView?.addSubview(changeCollecBtn)
|
|
|
navHeadImageView?.frame.size.height = cDevice_iPhoneNavBarAndStatusBarHei + margin * 2 + choseBtnH
|
|
|
navHeadImageView?.addSubview(choseLocalAllBtn)
|
|
@@ -303,7 +304,7 @@ public class PQStuckPointMaterialController: PQBaseViewController {
|
|
|
// }
|
|
|
// }
|
|
|
} else {
|
|
|
- confirmBtn.backgroundColor = UIColor.hexColor(hexadecimal: "#333333")
|
|
|
+ confirmBtn.backgroundColor = UIColor.hexColor(hexadecimal: "#F2F2F2")
|
|
|
// if materialHeadView.isHidden {
|
|
|
// UIView.animate(withDuration: 0.5, delay: 0, options: .allowUserInteraction) { [weak self] in
|
|
|
// // 调整位置
|