Skip to content

Commit

Permalink
Update UIControlItemsCell.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
VladK9 authored Sep 29, 2021
1 parent be29b5e commit af47160
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/UIControlViewItem/UIControlItemsCell.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import UIKit
import Foundation

class UIControlItemsCell: UICollectionViewCell {

Expand Down Expand Up @@ -88,7 +87,9 @@ class UIControlItemsCell: UICollectionViewCell {

self.backgroundColor = auto
case .standard:
self.backgroundColor = UIColor.darkGray.withAlphaComponent(0.05)
let auto = UIControlViewHelper.detectTheme(dark: .clear, light: .darkGray.withAlphaComponent(0.05), any: .clear)

self.backgroundColor = auto
case .customHEX(let hex):
let color = UIControlViewHelper.HexToUIColor(hex).withAlphaComponent(0.05)
let auto = UIControlViewHelper.detectTheme(dark: .clear, light: color, any: .clear)
Expand Down

0 comments on commit af47160

Please sign in to comment.