浏览代码

1.修改选择框主题色

wenweiwei 3 年之前
父节点
当前提交
e5e86c387d
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      BFFramework/Classes/Base/View/PQChoseMaterialCell.swift

+ 2 - 1
BFFramework/Classes/Base/View/PQChoseMaterialCell.swift

@@ -66,7 +66,8 @@ class PQChoseMaterialCell: UICollectionViewCell {
     lazy var choseBtn: UIButton = {
         let choseBtn = UIButton(type: .custom)
         choseBtn.setBackgroundImage(UIImage.init().BF_Image(named:  "videomk_chose_nomal"), for: .normal)
-        choseBtn.setBackgroundImage(UIImage.init().BF_Image(named:  "videomk_chose_selected"), for: .selected)
+        choseBtn.setBackgroundImage(UIImage.init().BF_Image(named:  "videomk_chose_selected").withRenderingMode(.alwaysTemplate), for: .selected)
+        choseBtn.tintColor = UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue)
         choseBtn.setTitleColor(UIColor.white, for: .normal)
         choseBtn.titleLabel?.font = UIFont.systemFont(ofSize: 12)
         choseBtn.tag = 1