Tweaked the UI in the ProfileView view for the Profile module.

This commit is contained in:
Javier Cicchelli 2022-12-15 02:29:59 +01:00
parent 6286086d2c
commit 1e513e688c

View File

@ -47,6 +47,7 @@ public struct ProfileView: View {
} }
.listRowBackground(Color.clear) .listRowBackground(Color.clear)
Group {
ProfileSection( ProfileSection(
header: "profile.sections.names.header.text", header: "profile.sections.names.header.text",
items: [ items: [
@ -78,6 +79,8 @@ public struct ProfileView: View {
) )
] ]
) )
}
.listRowBackground(Color.secondary.colorInvert())
Section { Section {
Button { Button {
@ -91,14 +94,14 @@ public struct ProfileView: View {
.foregroundColor(.primary) .foregroundColor(.primary)
.frame(maxWidth: .infinity) .frame(maxWidth: .infinity)
} }
.tint(.orange) .tint(.red)
.controlSize(.large)
.buttonStyle(.borderedProminent) .buttonStyle(.borderedProminent)
.buttonBorderShape(.roundedRectangle(radius: 8)) .buttonBorderShape(.roundedRectangle(radius: 8))
.controlSize(.large)
} }
.listRowBackground(Color.clear) .listRowBackground(Color.clear)
} }
.background(Color.red) .background(Color.primary.colorInvert())
} }
} }