damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit b6f25a85f84fe427c211812177f4aa4a94e80fcd
parent 7046fe0d4f021f4e705e88c57a0aa68590e7ee7c
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 12 Jul 2023 18:24:36 -0700

Fix nip05 badge icon

Diffstat:
Mdamus/Components/NIP05Badge.swift | 15++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/damus/Components/NIP05Badge.swift b/damus/Components/NIP05Badge.swift @@ -32,12 +32,13 @@ struct NIP05Badge: View { Group { if nip05_color { LINEAR_GRADIENT - .mask(Image("check-circle.fill") + .mask(Image("verified.fill") .resizable() - ).frame(width: 14, height: 14) + ).frame(width: 18, height: 18) } else if show_domain { - Image("check-circle.fill") - .font(.footnote) + Image("verified") + .resizable() + .frame(width: 18, height: 18) .nip05_colorized(gradient: nip05_color) } } @@ -84,7 +85,11 @@ func use_nip05_color(pubkey: String, contacts: Contacts) -> Bool { struct NIP05Badge_Previews: PreviewProvider { static var previews: some View { let test_state = test_damus_state() - NIP05Badge(nip05: NIP05(username: "jb55", host: "jb55.com"), pubkey: test_state.pubkey, contacts: test_state.contacts, show_domain: true, clickable: false) + VStack { + NIP05Badge(nip05: NIP05(username: "jb55", host: "jb55.com"), pubkey: test_state.pubkey, contacts: test_state.contacts, show_domain: true, clickable: false) + + NIP05Badge(nip05: NIP05(username: "jb55", host: "jb55.com"), pubkey: test_state.pubkey, contacts: Contacts(our_pubkey: "sdkfjsdf"), show_domain: true, clickable: false) + } } }