From 3fbf3cc12e10e2e4040f314114eece1a96610a75 Mon Sep 17 00:00:00 2001 From: ericholguin Date: Fri, 26 May 2023 15:47:00 -0600 Subject: [PATCH] eulaview: ui: replace damus white buttons with new gradient style buttons --- damus/Views/EULAView.swift | 41 ++++++++++++++++++++++++++++++-------- 1 file changed, 33 insertions(+), 8 deletions(-) diff --git a/damus/Views/EULAView.swift b/damus/Views/EULAView.swift index 13fb0a4a..26dd90ff 100644 --- a/damus/Views/EULAView.swift +++ b/damus/Views/EULAView.swift @@ -72,18 +72,43 @@ struct EULAView: View { .padding() } .padding(EdgeInsets(top: 20, leading: 10, bottom: 50, trailing: 10)) + + VStack { + Spacer() + + HStack { + Spacer() + + Button(action: { + dismiss() + }) { + HStack { + Text("Reject", comment: "Button to reject the end user license agreement, which disallows the user from being let into the app.") + .fontWeight(.semibold) + } + .frame(minWidth: 75, maxHeight: 12, alignment: .center) + .padding() + .foregroundColor(Color.white) + .background { + RoundedRectangle(cornerRadius: 12) + .fill(DamusColors.darkGrey, strokeBorder: DamusColors.mediumGrey, lineWidth: 1) + } } + + Button(action: { + accepted = true + login.toggle() + }) { + HStack { + Text("Accept", comment: "Button to accept the end user license agreement before being allowed into the app.") + .fontWeight(.semibold) + } + .frame(minWidth: 75, maxHeight: 12, alignment: .center) } + .buttonStyle(GradientButtonStyle()) } - DamusWhiteButton(NSLocalizedString("Accept", comment: "Button to accept the end user license agreement before being allowed into the app.")) { - accepted = true - } - - DamusWhiteButton(NSLocalizedString("Reject", comment: "Button to reject the end user license agreement, which disallows the user from being let into the app.")) { - dismiss() - } + .padding(.trailing, 30) } - .padding() } .navigationBarTitleDisplayMode(.inline) .navigationBarBackButtonHidden(true)