Profile: make key high-res and reintroduce key color

Changelog-Fixed: High res color pubkey on profile page
This commit is contained in:
William Casarin
2023-01-06 14:09:41 -08:00
parent b03bef2f8b
commit 7081c4ac69

View File

@@ -405,15 +405,11 @@ struct KeyView: View {
isCopied = false isCopied = false
} }
} label: { } label: {
Label { Label("Public Key", systemImage: "key.fill")
Text("Public key") .font(.custom("key", size: 12.0))
} icon: { .labelStyle(IconOnlyLabelStyle())
Image("ic-key") .foregroundStyle(hex_to_rgb(pubkey))
.contentShape(Rectangle()) .symbolRenderingMode(.palette)
.frame(width: 16, height: 16)
}
.labelStyle(IconOnlyLabelStyle())
.symbolRenderingMode(.hierarchical)
} }
.padding(.leading,4) .padding(.leading,4)
Text(abbrev_pubkey(bech32, amount: 16)) Text(abbrev_pubkey(bech32, amount: 16))