Parcourir la source

1.修改选择框主题色

wenweiwei il y a 3 ans
Parent
commit
e5e86c387d
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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