Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions BDKSwiftExampleWallet/View/Settings/SettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import BitcoinUI
import SwiftUI

struct SettingsView: View {
@Environment(\.colorScheme) var colorScheme
@Environment(\.dismiss) private var dismiss
@ObservedObject var viewModel: SettingsViewModel
@State private var isSeedPresented = false
Expand Down Expand Up @@ -44,6 +45,9 @@ struct SettingsView: View {
}
}
}
.listRowBackground(
colorScheme == .light ? Color.gray.opacity(0.1) : Color.black.opacity(0.2)
)

Section(header: Text("Wallet")) {
Button {
Expand All @@ -61,6 +65,9 @@ struct SettingsView: View {
.animation(.easeInOut, value: viewModel.inspectedScripts)
}
}
.listRowBackground(
colorScheme == .light ? Color.gray.opacity(0.1) : Color.black.opacity(0.2)
)

Section(header: Text("Danger Zone")) {
Button {
Expand All @@ -70,6 +77,9 @@ struct SettingsView: View {
.foregroundStyle(.red)
}
}
.listRowBackground(
colorScheme == .light ? Color.gray.opacity(0.1) : Color.black.opacity(0.2)
)

Section(header: Text("Destructive Zone")) {
Button {
Expand All @@ -81,6 +91,9 @@ struct SettingsView: View {
}
}
}
.listRowBackground(
colorScheme == .light ? Color.gray.opacity(0.1) : Color.black.opacity(0.2)
)

}
.background(Color(uiColor: UIColor.systemBackground))
Expand Down
Loading