From e33cb3b1c3ca5b4ace4bee6945bae743960af2e0 Mon Sep 17 00:00:00 2001 From: ericholguin Date: Fri, 26 May 2023 19:22:22 -0600 Subject: [PATCH] loginview: ui: replace damus white button with gradient style button --- damus/Views/LoginView.swift | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/damus/Views/LoginView.swift b/damus/Views/LoginView.swift index a3e83350..43489c20 100644 --- a/damus/Views/LoginView.swift +++ b/damus/Views/LoginView.swift @@ -84,11 +84,10 @@ struct LoginView: View { .foregroundColor(.white) .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()