mirror of
git://jb55.com/damus
synced 2024-10-06 11:43:21 +00:00
createaccount: ui: change the look of the form label
This commit is contained in:
parent
cf15bd3463
commit
62dfc24e58
@ -177,11 +177,10 @@ func FormLabel(_ title: String, optional: Bool = false) -> some View {
|
|||||||
return HStack {
|
return HStack {
|
||||||
Text(title)
|
Text(title)
|
||||||
.bold()
|
.bold()
|
||||||
.foregroundColor(.white)
|
|
||||||
if optional {
|
if optional {
|
||||||
Text("optional", comment: "Label indicating that a form input is optional.")
|
Text("- optional", comment: "Label indicating that a form input is optional.")
|
||||||
.font(.callout)
|
.font(.callout)
|
||||||
.foregroundColor(.white.opacity(0.5))
|
.foregroundColor(DamusColors.mediumGrey)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user