add border around search field

Signed-off-by: Toni Förster <toni.foerster@gmail.com>
This commit is contained in:
Toni Förster 2024-09-10 19:01:41 +02:00
parent 4663aab3da
commit 0bef798341
No known key found for this signature in database
GPG Key ID: 292F3E5086C83FC7

View File

@ -74,6 +74,10 @@ struct SearchTextField: View {
RoundedRectangle(cornerRadius: 8) RoundedRectangle(cornerRadius: 8)
.fill(Color("SearchTextFieldBackground")) .fill(Color("SearchTextFieldBackground"))
) )
.overlay(
RoundedRectangle(cornerRadius: 8)
.stroke(Color("ControlsBorderColor"), lineWidth: 1)
)
.frame(maxWidth: .infinity, alignment: .leading) .frame(maxWidth: .infinity, alignment: .leading)
} }
.padding(.horizontal, 0) .padding(.horizontal, 0)