浏览代码

1.修改卡点时长显示

wenweiwei 3 年之前
父节点
当前提交
5a8cb4d2cf

+ 3 - 3
BFFramework/Classes/Stuckpoint/View/PQVideoCutingOprateView.swift

@@ -58,11 +58,11 @@ class PQVideoCutingOprateView: UIView {
 
     lazy var durationLabel: UILabel = {
         let durationLabel = UILabel()
-        durationLabel.font = UIFont.systemFont(ofSize: 11, weight: .medium)
-        durationLabel.backgroundColor = PQBFConfig.shared.cutViewStyleColor
-        durationLabel.alpha = 0.1
+        durationLabel.font = UIFont.systemFont(ofSize: 16, weight: .medium)
+        durationLabel.backgroundColor = PQBFConfig.shared.cutDurationColor
         durationLabel.textColor = UIColor.white
         durationLabel.textAlignment = .center
+        durationLabel.addShadow()
         return durationLabel
     }()
 

+ 2 - 0
BFFramework/Classes/Utils/PQBFConfig.swift

@@ -35,6 +35,8 @@ public class PQBFConfig: NSObject {
     public var styleTitleColor: UIColor = UIColor.black
     // 裁剪主题色
     public var cutViewStyleColor: UIColor = UIColor.hexColor(hexadecimal: "#3DC1C1")
+    // 裁剪主题色61, 193, 193
+    public var cutDurationColor: UIColor = UIColor.init(red: 61.0 / 255.0, green: 193.0 / 255.0, blue: 193.0 / 255.0, alpha: 0.1)
     // 裁剪主题色
     public var cutViewTintColor: UIColor = UIColor.white
     public var otherTintColor: UIColor = UIColor.hexColor(hexadecimal: "#F2F2F2")