File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
BDKSwiftExampleWallet/View/Settings Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import BitcoinUI
99import SwiftUI
1010
1111struct 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) )
You can’t perform that action at this time.
0 commit comments