Update text field style

This commit is contained in:
Markus Thielker 2025-02-08 01:48:19 +01:00
parent 2d11418aa6
commit 99c16b368d

View file

@ -16,7 +16,7 @@ struct PwdTextFieldStyle: TextFieldStyle {
func _body(configuration: TextField<Self._Label>) -> some View {
configuration
.padding(EdgeInsets(top: 8, leading: 8, bottom: 8, trailing: 8))
.background(colorScheme == .dark ? .black : .white)
.background(colorScheme == .dark ? .black.opacity(0.1) : .white)
.foregroundColor(colorScheme == .dark ? .white : .black)
.textFieldStyle(.plain)
.cornerRadius(radius)