소스 검색

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