From 29068a40c87ef33158bcb06df7d5cbf2c38444bb Mon Sep 17 00:00:00 2001 From: ericholguin Date: Fri, 26 May 2023 19:54:12 -0600 Subject: [PATCH] createaccount: ui: remove damus gradient and white font color add background --- damus/Views/SaveKeysView.swift | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/damus/Views/SaveKeysView.swift b/damus/Views/SaveKeysView.swift index b0c0c5a1..b7c18077 100644 --- a/damus/Views/SaveKeysView.swift +++ b/damus/Views/SaveKeysView.swift @@ -23,25 +23,19 @@ struct SaveKeysView: View { var body: some View { ZStack(alignment: .top) { - DamusGradient() - VStack(alignment: .center) { Text("Welcome, \(account.rendered_name)!", comment: "Text to welcome user.") .font(.title.bold()) - .foregroundColor(.white) .padding(.bottom, 10) Text("Before we get started, you'll need to save your account info, otherwise you won't be able to login in the future if you ever uninstall Damus.", comment: "Reminder to user that they should save their account information.") - .foregroundColor(.white) .padding(.bottom, 10) Text("Public Key", comment: "Label to indicate that text below is the user's public key used by others to uniquely refer to the user.") .font(.title2.bold()) - .foregroundColor(.white) .padding(.bottom, 10) Text("This is your account ID, you can give this to your friends so that they can follow you. Tap to copy.", comment: "Label to describe that a public key is the user's account ID and what they can do with it.") - .foregroundColor(.white) .padding(.bottom, 10) SaveKeyView(text: account.pubkey_bech32, textContentType: .username, is_copied: $pub_copied, focus: $pubkey_focused) @@ -50,11 +44,9 @@ struct SaveKeysView: View { if pub_copied { Text("Private Key", comment: "Label to indicate that the text below is the user's private key used by only the user themself as a secret to login to access their account.") .font(.title2.bold()) - .foregroundColor(.white) .padding(.bottom, 10) Text("This is your secret account key. You need this to access your account. Don't share this with anyone! Save it in a password manager and keep it safe!", comment: "Label to describe that a private key is the user's secret account key and what they should do with it.") - .foregroundColor(.white) .padding(.bottom, 10) SaveKeyView(text: account.privkey_bech32, textContentType: .newPassword, is_copied: $priv_copied, focus: $privkey_focused) @@ -80,6 +72,13 @@ struct SaveKeysView: View { } .padding(20) } + .background( + Image("eula-bg") + .resizable() + .blur(radius: 70) + .ignoresSafeArea(), + alignment: .top + ) .navigationBarBackButtonHidden(true) .navigationBarItems(leading: BackNav()) .onAppear {