Skip to content

Commit 7ac9005

Browse files
authored
ui: settingsview listrowbackground color
1 parent 7bf44c7 commit 7ac9005

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

BDKSwiftExampleWallet/View/Settings/SettingsView.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import BitcoinUI
99
import SwiftUI
1010

1111
struct SettingsView: View {
12+
@Environment(\.colorScheme) var colorScheme
1213
@Environment(\.dismiss) private var dismiss
1314
@ObservedObject var viewModel: SettingsViewModel
1415
@State private var isSeedPresented = false
@@ -44,6 +45,9 @@ struct SettingsView: View {
4445
}
4546
}
4647
}
48+
.listRowBackground(
49+
colorScheme == .light ? Color.gray.opacity(0.1) : Color.black.opacity(0.2)
50+
)
4751

4852
Section(header: Text("Wallet")) {
4953
Button {
@@ -61,6 +65,9 @@ struct SettingsView: View {
6165
.animation(.easeInOut, value: viewModel.inspectedScripts)
6266
}
6367
}
68+
.listRowBackground(
69+
colorScheme == .light ? Color.gray.opacity(0.1) : Color.black.opacity(0.2)
70+
)
6471

6572
Section(header: Text("Danger Zone")) {
6673
Button {
@@ -70,6 +77,9 @@ struct SettingsView: View {
7077
.foregroundStyle(.red)
7178
}
7279
}
80+
.listRowBackground(
81+
colorScheme == .light ? Color.gray.opacity(0.1) : Color.black.opacity(0.2)
82+
)
7383

7484
Section(header: Text("Destructive Zone")) {
7585
Button {
@@ -81,6 +91,9 @@ struct SettingsView: View {
8191
}
8292
}
8393
}
94+
.listRowBackground(
95+
colorScheme == .light ? Color.gray.opacity(0.1) : Color.black.opacity(0.2)
96+
)
8497

8598
}
8699
.background(Color(uiColor: UIColor.systemBackground))

0 commit comments

Comments
 (0)