Skip to content

Commit

Permalink
Preferences dark mode fix
Browse files Browse the repository at this point in the history
  • Loading branch information
flypaper0 committed Oct 5, 2023
1 parent 7915f58 commit 3f26d06
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ struct NotifyPreferencesView: View {
}
.frame(maxWidth: .infinity)
.alignmentGuide(.listRowSeparatorLeading) { _ in -50 }
.listRowBackground(Color.clear)

ForEach(Array(viewModel.preferences.enumerated()), id: \.offset) { i, preference in
if let value = viewModel.subscriptionViewModel.scope[preference] {
preferenceRow(title: preference, value: value)
.listRowSeparator(i == viewModel.preferences.count-1 ? .hidden : .visible)
.listRowBackground(Color.clear)
}
}

Expand All @@ -42,6 +44,7 @@ struct NotifyPreferencesView: View {
}
.buttonStyle(.plain)
.disabled(viewModel.isUpdateDisabled)
.listRowBackground(Color.clear)
}
.listStyle(.plain)
}
Expand Down

0 comments on commit 3f26d06

Please sign in to comment.