From 028cab9cf6df01faa2329f882893ad00befd6a81 Mon Sep 17 00:00:00 2001 From: ericholguin Date: Fri, 26 May 2023 19:55:29 -0600 Subject: [PATCH] createaccount: ui: replace damus white buttons with gradient style buttons --- damus/Views/SaveKeysView.swift | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/damus/Views/SaveKeysView.swift b/damus/Views/SaveKeysView.swift index b7c18077..6d46b096 100644 --- a/damus/Views/SaveKeysView.swift +++ b/damus/Views/SaveKeysView.swift @@ -60,13 +60,30 @@ struct SaveKeysView: View { } else if let err = error { Text("Error: \(err)", comment: "Error message indicating why saving keys failed.") .foregroundColor(.red) - DamusWhiteButton(NSLocalizedString("Retry", comment: "Button to retry completing account creation after an error occurred.")) { + + Button(action: { complete_account_creation(account) + }) { + HStack { + Text("Retry", comment: "Button to retry completing account creation after an error occurred.") + .fontWeight(.semibold) + } + .frame(minWidth: 300, maxWidth: .infinity, maxHeight: 12, alignment: .center) } + .buttonStyle(GradientButtonStyle()) + .padding(.top, 20) } else { - DamusWhiteButton(NSLocalizedString("Let's go!", comment: "Button to complete account creation and start using the app.")) { + Button(action: { complete_account_creation(account) + }) { + HStack { + Text("Let's go!", comment: "Button to complete account creation and start using the app.") + .fontWeight(.semibold) + } + .frame(minWidth: 300, maxWidth: .infinity, maxHeight: 12, alignment: .center) } + .buttonStyle(GradientButtonStyle()) + .padding(.top, 20) } } }