1
0
mirror of git://jb55.com/damus synced 2024-10-06 03:33:22 +00:00

createaccount: ui: change the look of the form text field

This commit is contained in:
ericholguin 2023-05-26 19:32:39 -06:00 committed by William Casarin
parent fd44a56f9b
commit cf15bd3463

View File

@ -163,13 +163,13 @@ func KeyText(_ text: Binding<String>) -> some View {
func FormTextInput(_ title: String, text: Binding<String>) -> some View {
return TextField("", text: text)
.placeholder(when: text.wrappedValue.isEmpty) {
Text(title).foregroundColor(.white.opacity(0.4))
Text(title).foregroundColor(.gray.opacity(0.5))
}
.padding()
.padding(15)
.background {
RoundedRectangle(cornerRadius: 4.0).opacity(0.2)
RoundedRectangle(cornerRadius: 12)
.stroke(.gray.opacity(0.5), lineWidth: 1)
}
.foregroundColor(.white)
.font(.body.bold())
}