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

createaccount: ui: replace damus white buttons with gradient style buttons

This commit is contained in:
ericholguin 2023-05-26 19:55:29 -06:00 committed by William Casarin
parent 29068a40c8
commit 028cab9cf6

View File

@ -60,13 +60,30 @@ struct SaveKeysView: View {
} else if let err = error { } else if let err = error {
Text("Error: \(err)", comment: "Error message indicating why saving keys failed.") Text("Error: \(err)", comment: "Error message indicating why saving keys failed.")
.foregroundColor(.red) .foregroundColor(.red)
DamusWhiteButton(NSLocalizedString("Retry", comment: "Button to retry completing account creation after an error occurred.")) {
Button(action: {
complete_account_creation(account) 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 { } else {
DamusWhiteButton(NSLocalizedString("Let's go!", comment: "Button to complete account creation and start using the app.")) { Button(action: {
complete_account_creation(account) 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)
} }
} }
} }