loginview: ui: replace damus white button with gradient style button
This commit is contained in:
committed by
William Casarin
parent
f171cfffe7
commit
e33cb3b1c3
@@ -85,10 +85,9 @@ struct LoginView: View {
|
|||||||
.padding()
|
.padding()
|
||||||
}
|
}
|
||||||
|
|
||||||
Spacer()
|
|
||||||
|
|
||||||
if let p = parsed {
|
if let p = parsed {
|
||||||
DamusWhiteButton(NSLocalizedString("Login", comment: "Button to log into account.")) {
|
|
||||||
|
Button(action: {
|
||||||
Task {
|
Task {
|
||||||
do {
|
do {
|
||||||
try await process_login(p, is_pubkey: is_pubkey)
|
try await process_login(p, is_pubkey: is_pubkey)
|
||||||
@@ -96,7 +95,15 @@ struct LoginView: View {
|
|||||||
self.error = error.localizedDescription
|
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()
|
.padding()
|
||||||
|
|||||||
Reference in New Issue
Block a user