Commit 5007d94b authored by Soomin Lee's avatar Soomin Lee

VLCActionSheet: Change default theme to black

Since 3.0 cannot change themes and most of the UI is on the darker
side, this changes the default theme to have more dark friendly colors
parent 9084145e
......@@ -53,7 +53,7 @@ class VLCActionSheet: UIViewController {
let collectionView = UICollectionView(frame: UIScreen.main.bounds, collectionViewLayout: collectionViewLayout)
collectionView.delegate = self
collectionView.dataSource = self
collectionView.backgroundColor = .white
collectionView.backgroundColor = .vlcDarkBackground()
collectionView.alwaysBounceVertical = true
collectionView.showsVerticalScrollIndicator = false
collectionView.register(VLCActionSheetCell.self, forCellWithReuseIdentifier: VLCActionSheetCell.identifier)
......@@ -64,15 +64,15 @@ class VLCActionSheet: UIViewController {
lazy var headerView: VLCActionSheetSectionHeader = {
let headerView = VLCActionSheetSectionHeader()
headerView.title.text = delegate?.headerViewTitle?() ?? "Default header title"
headerView.title.textColor = .black
headerView.backgroundColor = .white
headerView.title.textColor = .white
headerView.backgroundColor = .vlcDarkBackground()
headerView.translatesAutoresizingMaskIntoConstraints = false
return headerView
}()
lazy var bottomBackgroundView: UIView = {
let bottomBackgroundView = UIView()
bottomBackgroundView.backgroundColor = .white
bottomBackgroundView.backgroundColor = .vlcDarkBackground()
bottomBackgroundView.translatesAutoresizingMaskIntoConstraints = false
return bottomBackgroundView
}()
......
......@@ -22,7 +22,7 @@ class VLCActionSheetCell: UICollectionViewCell {
let name: UILabel = {
let name = UILabel()
name.textColor = .black
name.textColor = .white
name.font = UIFont.systemFont(ofSize: 15)
name.translatesAutoresizingMaskIntoConstraints = false
return name
......@@ -48,7 +48,7 @@ class VLCActionSheetCell: UICollectionViewCell {
}
private func setupViews() {
backgroundColor = .white
backgroundColor = .vlcDarkBackground()
stackView.addArrangedSubview(icon)
stackView.addArrangedSubview(name)
......
......@@ -22,7 +22,7 @@ class VLCActionSheetSectionHeader: UIView {
let separator: UIView = {
let separator = UIView()
separator.backgroundColor = .lightGray
separator.backgroundColor = .black
separator.translatesAutoresizingMaskIntoConstraints = false
return separator
}()
......
......@@ -193,11 +193,11 @@ extension VLCRendererDiscovererManager: VLCRendererDiscovererDelegate {
fileprivate func updateCollectionViewCellApparence(cell: VLCActionSheetCell, highlighted: Bool) {
var image = UIImage(named: "rendererGray")
var textColor: UIColor = .black
var textColor: UIColor = .white
if highlighted {
image = UIImage(named: "rendererOrangeFull")
textColor = UIColor.vlcOrangeTint()
textColor = .vlcOrangeTint()
}
cell.icon.image = image
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment