|
@@ -312,9 +312,9 @@ public class PQStuckPointMaterialController: PQBaseViewController {
|
|
|
selectedImageDataCount = imageCount
|
|
|
confirmBtn.isSelected = (selectedDataCount > 0 && (imageCount >= 2 || selectedDataCount > imageCount))
|
|
|
if confirmBtn.isSelected {
|
|
|
- confirmBtn.backgroundColor = UIColor.hexColor(hexadecimal: "#EE0051")
|
|
|
+ confirmBtn.backgroundColor = UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue)
|
|
|
} else {
|
|
|
- confirmBtn.backgroundColor = UIColor.hexColor(hexadecimal: "#333333")
|
|
|
+ confirmBtn.backgroundColor = PQBFConfig.shared.otherTintColor
|
|
|
}
|
|
|
if selectedDataCount <= 0 {
|
|
|
bottomRemindLab.attributedText = NSAttributedString(string: "至少选择 1 个视频或 2 张照片")
|
|
@@ -323,10 +323,11 @@ public class PQStuckPointMaterialController: PQBaseViewController {
|
|
|
bottomRemindLab.attributedText = att
|
|
|
} else {
|
|
|
let att = NSMutableAttributedString(string: "素材总时长 \(totalDuration.formatDurationToHMS())")
|
|
|
- att.setAttributes([.foregroundColor: UIColor.hexColor(hexadecimal: "#EE0051")], range: NSRange(location: 6, length: "\(totalDuration.formatDurationToHMS())".count))
|
|
|
+ att.setAttributes([.foregroundColor: UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue)], range: NSRange(location: 6, length: "\(totalDuration.formatDurationToHMS())".count))
|
|
|
bottomRemindLab.attributedText = att
|
|
|
}
|
|
|
confirmBtn.setTitle(selectedDataCount > 0 ? "确定(\(selectedDataCount))" : "确定", for: .normal)
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/// 处理已经选择的数据
|