Minor changes to profile ready for rebrand Key removal from nPub in profile

This commit is contained in:
Ben Weeks
2023-05-28 13:28:14 +01:00
committed by William Casarin
parent c22199165a
commit 8eebc2abe5

View File

@@ -540,23 +540,11 @@ struct KeyView: View {
let bech32 = bech32_pubkey(pubkey) ?? pubkey let bech32 = bech32_pubkey(pubkey) ?? pubkey
HStack { HStack {
HStack {
Button {
copyPubkey(bech32)
} label: {
Label(NSLocalizedString("Public Key", comment: "Label indicating that the text is a user's public account key."), systemImage: "key.fill")
.font(.custom("key", size: 12.0))
.labelStyle(IconOnlyLabelStyle())
.foregroundStyle(hex_to_rgb(pubkey))
.symbolRenderingMode(.palette)
}
.padding(.trailing, 2)
Text(verbatim: "\(abbrev_pubkey(bech32, amount: 16))") Text(verbatim: "\(abbrev_pubkey(bech32, amount: 16))")
.font(.footnote) .font(.footnote)
.foregroundColor(keyColor()) .foregroundColor(keyColor())
} .padding(5)
.padding(2) .padding([.leading, .trailing], 5)
.padding([.leading, .trailing], 3)
.background(RoundedRectangle(cornerRadius: 11).foregroundColor(DamusColors.adaptableGrey)) .background(RoundedRectangle(cornerRadius: 11).foregroundColor(DamusColors.adaptableGrey))
if isCopied != true { if isCopied != true {