diff --git a/ios/MullvadVPN/UI appearance/UIColor+Palette.swift b/ios/MullvadVPN/UI appearance/UIColor+Palette.swift index bc53819d1030..b702e2303cdf 100644 --- a/ios/MullvadVPN/UI appearance/UIColor+Palette.swift +++ b/ios/MullvadVPN/UI appearance/UIColor+Palette.swift @@ -87,10 +87,10 @@ extension UIColor { // Cells enum Cell { enum Background { - static let indentationLevelZero = primaryColor - static let indentationLevelOne = UIColor(red: 0.15, green: 0.23, blue: 0.33, alpha: 1.0) - static let indentationLevelTwo = UIColor(red: 0.13, green: 0.20, blue: 0.30, alpha: 1.0) - static let indentationLevelThree = UIColor(red: 0.11, green: 0.17, blue: 0.27, alpha: 1.0) + static let indentationLevelZero = UIColor(red: 0.14, green: 0.25, blue: 0.38, alpha: 1.0) + static let indentationLevelOne = UIColor(red: 0.12, green: 0.23, blue: 0.34, alpha: 1.0) + static let indentationLevelTwo = UIColor(red: 0.11, green: 0.20, blue: 0.31, alpha: 1.0) + static let indentationLevelThree = UIColor(red: 0.11, green: 0.19, blue: 0.29, alpha: 1.0) static let normal = indentationLevelZero static let disabled = normal.darkened(by: 0.3)! diff --git a/ios/MullvadVPN/View controllers/SelectLocation/LocationCell.swift b/ios/MullvadVPN/View controllers/SelectLocation/LocationCell.swift index a51cebf59c86..68c70b04cc30 100644 --- a/ios/MullvadVPN/View controllers/SelectLocation/LocationCell.swift +++ b/ios/MullvadVPN/View controllers/SelectLocation/LocationCell.swift @@ -134,10 +134,7 @@ class LocationCell: UITableViewCell { contentView.backgroundColor = .clear backgroundView = UIView() - backgroundView?.backgroundColor = UIColor.Cell.Background.normal - selectedBackgroundView = UIView() - selectedBackgroundView?.backgroundColor = UIColor.Cell.Background.selected checkboxButton.addTarget(self, action: #selector(toggleCheckboxButton(_:)), for: .touchUpInside) collapseButton.addTarget(self, action: #selector(handleCollapseButton(_:)), for: .touchUpInside) diff --git a/ios/MullvadVPN/View controllers/SelectLocation/LocationSectionHeaderView.swift b/ios/MullvadVPN/View controllers/SelectLocation/LocationSectionHeaderView.swift index c84fea9097af..11889bb590a0 100644 --- a/ios/MullvadVPN/View controllers/SelectLocation/LocationSectionHeaderView.swift +++ b/ios/MullvadVPN/View controllers/SelectLocation/LocationSectionHeaderView.swift @@ -66,9 +66,9 @@ class LocationSectionHeaderView: UIView, UIContentView { nameLabel.text = configuration.name actionButton.isHidden = isActionHidden actionButton.accessibilityIdentifier = nil - actualConfiguration.primaryAction.flatMap { [weak self] action in - self?.actionButton.accessibilityIdentifier = .openCustomListsMenuButton - self?.actionButton.addAction(action, for: .touchUpInside) + actualConfiguration.primaryAction.flatMap { action in + actionButton.accessibilityIdentifier = .openCustomListsMenuButton + actionButton.addAction(action, for: .touchUpInside) } }