Skip to content

Commit

Permalink
ui: settingsview listrowbackground color
Browse files Browse the repository at this point in the history
  • Loading branch information
reez committed Sep 29, 2024
1 parent 7bf44c7 commit 9ff9757
Showing 1 changed file with 13 additions and 0 deletions.
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

0 comments on commit 9ff9757

Please sign in to comment.