mirror of
git://jb55.com/damus
synced 2024-10-06 11:43:21 +00:00
createaccount: ui: center pubkey text and add gradient style
This commit is contained in:
parent
dd022a953c
commit
47d594af00
@ -158,8 +158,9 @@ func KeyText(_ text: Binding<String>) -> some View {
|
|||||||
let bechkey = bech32_encode(hrp: PUBKEY_HRP, decoded)
|
let bechkey = bech32_encode(hrp: PUBKEY_HRP, decoded)
|
||||||
return Text(bechkey)
|
return Text(bechkey)
|
||||||
.textSelection(.enabled)
|
.textSelection(.enabled)
|
||||||
|
.multilineTextAlignment(.center)
|
||||||
.font(.callout.monospaced())
|
.font(.callout.monospaced())
|
||||||
.foregroundColor(.white)
|
.foregroundStyle(DamusLogoGradient.gradient)
|
||||||
}
|
}
|
||||||
|
|
||||||
func FormTextInput(_ title: String, text: Binding<String>) -> some View {
|
func FormTextInput(_ title: String, text: Binding<String>) -> some View {
|
||||||
|
Loading…
Reference in New Issue
Block a user