From 7081c4ac6968e7eacb0e55fd614204da8292035b Mon Sep 17 00:00:00 2001 From: William Casarin Date: Fri, 6 Jan 2023 14:09:41 -0800 Subject: [PATCH] Profile: make key high-res and reintroduce key color Changelog-Fixed: High res color pubkey on profile page --- damus/Views/ProfileView.swift | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/damus/Views/ProfileView.swift b/damus/Views/ProfileView.swift index 1636a2fd..7cf7a227 100644 --- a/damus/Views/ProfileView.swift +++ b/damus/Views/ProfileView.swift @@ -405,15 +405,11 @@ struct KeyView: View { isCopied = false } } label: { - Label { - Text("Public key") - } icon: { - Image("ic-key") - .contentShape(Rectangle()) - .frame(width: 16, height: 16) - } - .labelStyle(IconOnlyLabelStyle()) - .symbolRenderingMode(.hierarchical) + Label("Public Key", systemImage: "key.fill") + .font(.custom("key", size: 12.0)) + .labelStyle(IconOnlyLabelStyle()) + .foregroundStyle(hex_to_rgb(pubkey)) + .symbolRenderingMode(.palette) } .padding(.leading,4) Text(abbrev_pubkey(bech32, amount: 16))