Browse Source

1.修改预览跟播放背景色

wenweiwei 3 năm trước cách đây
mục cha
commit
5cc01ae51f

+ 1 - 1
BFFramework/Classes/Stuckpoint/Controller/PQStuckPointEditerController.swift

@@ -257,7 +257,7 @@ class PQStuckPointEditerController: PQBaseViewController {
 //        view.addSubview(timeRemindLab)
         // 添加一个背景区分不同色值
         let backView: UIView = UIView()
-        backView.backgroundColor = UIColor.hexColor(hexadecimal: "#262626")
+        backView.backgroundColor = PQBFConfig.shared.styleBackGroundColor
         view.insertSubview(backView, aboveSubview: navHeadImageView!)
         backView.frame = CGRect(x: 0, y: navHeadImageView?.frame.height ?? 0, width: cScreenWidth, height: (stuckPointCuttingView.frame.minY - cDefaultMargin * 3) - (navHeadImageView?.frame.height ?? 0))
     }

+ 1 - 2
BFFramework/Classes/Stuckpoint/Controller/PQStuckPointPublicController.swift

@@ -119,7 +119,7 @@ class PQStuckPointPublicController: PQBaseViewController {
     /// 预览背景页
     lazy var bgTopView: UIView = {
         let bgTopView = UIView(frame: CGRect(x: 0, y: cDevice_iPhoneNavBarAndStatusBarHei, width: cScreenWidth, height: maxHeight))
-        bgTopView.backgroundColor = UIColor.hexColor(hexadecimal: "#0F0F14")
+        bgTopView.backgroundColor = PQBFConfig.shared.styleBackGroundColor
         return bgTopView
     }()
 
@@ -129,7 +129,6 @@ class PQStuckPointPublicController: PQBaseViewController {
         playerHeaderView.isUserInteractionEnabled = true
         playerHeaderView.contentMode = .scaleAspectFit
         playerHeaderView.clipsToBounds = true
-        playerHeaderView.backgroundColor = UIColor.black
         return playerHeaderView
     }()
 

+ 1 - 1
BFFramework/Classes/Stuckpoint/View/PQCustomSwitchView.swift

@@ -28,7 +28,7 @@ class PQCustomSwitchView: UIView {
         fatalError("init(coder:) has not been implemented")
     }
 
-    init(frame: CGRect, titles: [String], defaultIndex: Int = 1) {
+    init(frame: CGRect, titles: [String],defaultIndex : Int = 1) {
         super.init(frame: frame)
         backgroundColor = PQBFConfig.shared.otherTintColor
         addCorner(corner: frame.height / 2)

+ 2 - 2
BFFramework/Classes/Stuckpoint/ViewModel/PQGPUImagePlayerView.swift

@@ -213,10 +213,10 @@ public class PQGPUImagePlayerView: UIView, RenderViewDelegate {
         addSubview(renderView)
         addSubview(playView)
         addSubview(progressLab)
-        backgroundColor = UIColor.black
+        backgroundColor = PQBFConfig.shared.styleBackGroundColor
 
         playerEmptyView = UIImageView(frame: bounds)
-        playerEmptyView.backgroundColor = .black
+        playerEmptyView.backgroundColor = PQBFConfig.shared.styleBackGroundColor
         playerEmptyView.image = UIImage().BF_Image(named: "playEmpty")
         playerEmptyView.contentMode = .center
         addSubview(playerEmptyView)