Skip to content

Commit

Permalink
Fix switch coloring (#1915)
Browse files Browse the repository at this point in the history
By removing manual settings
  • Loading branch information
rinat-enikeev authored Jan 30, 2024
1 parent 48d0e52 commit 51530e7
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ final class FeatureTogglesViewController: UITableViewController {
}

private func layoutViews() {
let headerView = headerView

let sourceSwitch = sourceSwitch
sourceSwitch.onTintColor = .clear
sourceSwitch.thumbTintColor = RuuviColor.tintColor.color

let sourceLabel = sourceLabel
headerView.translatesAutoresizingMaskIntoConstraints = false
sourceSwitch.translatesAutoresizingMaskIntoConstraints = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ extension ChartSettingsTableViewController {
cell.titleLabel.text = title
cell.titleLabel.textColor = RuuviColor.menuTextColor.color
cell.isOnSwitch.isOn = value
cell.isOnSwitch.thumbTintColor = RuuviColor.tintColor.color
cell.delegate = self
return cell
case let .stepper(title, value, unitSingular, unitPlural):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ extension DefaultsTableViewController {
cell.titleLabel.text = viewModel.title
cell.titleLabel.textColor = RuuviColor.menuTextColor.color
cell.isOnSwitch.isOn = viewModel.boolean.value ?? false
cell.isOnSwitch.onTintColor = RuuviColor.switchEnabledTint.color
cell.isOnSwitch.thumbTintColor = RuuviColor.tintColor.color
cell.delegate = self
return cell
case .stepper:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ extension HeartbeatTableViewController: HeartbeatViewInput {
bgScanningTitleLabel.textColor = RuuviColor.menuTextColor.color
bgScanningIntervalTitleLabel.textColor = RuuviColor.menuTextColor.color
bgScanningIntervalValueLabel.textColor = RuuviColor.textColor.color
bgScanningSwitch.thumbTintColor = RuuviColor.tintColor.color
bgScanningIntervalStepper.backgroundColor = RuuviColor.tintColor.color
}
}
Expand Down

0 comments on commit 51530e7

Please sign in to comment.