1
0
mirror of git://jb55.com/damus synced 2024-10-06 11:43:21 +00:00

loginview: ui: replace damus white button with gradient style button

This commit is contained in:
ericholguin 2023-05-26 19:22:22 -06:00 committed by William Casarin
parent f171cfffe7
commit e33cb3b1c3

View File

@ -85,10 +85,9 @@ struct LoginView: View {
.padding()
}
Spacer()
if let p = parsed {
DamusWhiteButton(NSLocalizedString("Login", comment: "Button to log into account.")) {
Button(action: {
Task {
do {
try await process_login(p, is_pubkey: is_pubkey)
@ -96,7 +95,15 @@ struct LoginView: View {
self.error = error.localizedDescription
}
}
}) {
HStack {
Text("Login", comment: "Button to log into account.")
.fontWeight(.semibold)
}
.frame(minWidth: 300, maxWidth: .infinity, maxHeight: 12, alignment: .center)
}
.buttonStyle(GradientButtonStyle())
.padding(.top, 10)
}
}
.padding()