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() .padding()
} }
Spacer()
if let p = parsed { if let p = parsed {
DamusWhiteButton(NSLocalizedString("Login", comment: "Button to log into account.")) {
Button(action: {
Task { Task {
do { do {
try await process_login(p, is_pubkey: is_pubkey) try await process_login(p, is_pubkey: is_pubkey)
@@ -96,7 +95,15 @@ struct LoginView: View {
self.error = error.localizedDescription 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() .padding()