Skip to content

Commit ee59dd8

Browse files
committed
Change alpha for disable style
1 parent 49b29d1 commit ee59dd8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ios/MullvadVPN/View controllers/RelayFilter/RelayFilterCellFactory.swift

+1-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ struct RelayFilterCellFactory: @preconcurrency CellFactoryProtocol {
6464

6565
private func configureProviderCell(_ cell: CheckableSettingsCell?, item: RelayFilterDataSourceItem) {
6666
guard let cell = cell else { return }
67-
let alpha = item.isEnabled ? 1.0 : 0.5
67+
let alpha = item.isEnabled ? 1.0 : 0.2
6868

6969
cell.titleLabel.text = NSLocalizedString(
7070
"RELAY_FILTER_CELL_LABEL",
@@ -84,7 +84,6 @@ struct RelayFilterCellFactory: @preconcurrency CellFactoryProtocol {
8484
cell.setAccessibilityIdentifier(.relayFilterProviderCell)
8585
cell.titleLabel.alpha = alpha
8686
cell.detailTitleLabel.alpha = alpha
87-
cell.detailTitleLabel.textColor = cell.titleLabel.textColor
8887
}
8988

9089
private func setFontWeight(_ weight: UIFont.Weight, to label: UILabel) {

ios/MullvadVPN/View controllers/RelayFilter/RelayFilterViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class RelayFilterViewController: UIViewController {
110110
.sink { [weak self] filter in
111111
guard let self else { return }
112112
let filterDescriptor = viewModel.getFilteredRelays(filter)
113-
descriptionLabel.alpha = filterDescriptor.isEnabled ? 1.0 : 0.5
113+
descriptionLabel.alpha = filterDescriptor.isEnabled ? 1.0 : 0.2
114114
applyButton.isEnabled = filterDescriptor.isEnabled
115115
applyButton.setTitle(filterDescriptor.title, for: .normal)
116116
descriptionLabel.text = filterDescriptor.description

0 commit comments

Comments
 (0)