From 54237049801097ab47c155337b27ed98bf2d35db Mon Sep 17 00:00:00 2001 From: Joel Klabo Date: Tue, 28 Feb 2023 12:49:05 -0800 Subject: [PATCH] Make purple color more consistent in mentions Changelog-Fixed: Make damus purple use more consistent in mentions Closes: #709 --- damus/Views/NoteContentView.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/damus/Views/NoteContentView.swift b/damus/Views/NoteContentView.swift index 33bc0523..b14c0364 100644 --- a/damus/Views/NoteContentView.swift +++ b/damus/Views/NoteContentView.swift @@ -142,14 +142,14 @@ struct NoteContentView: View { func hashtag_str(_ htag: String) -> AttributedString { var attributedString = AttributedString(stringLiteral: "#\(htag)") attributedString.link = URL(string: "nostr:t:\(htag)") - attributedString.foregroundColor = .purple + attributedString.foregroundColor = Color("DamusPurple") return attributedString } func url_str(_ url: URL) -> AttributedString { var attributedString = AttributedString(stringLiteral: url.absoluteString) attributedString.link = url - attributedString.foregroundColor = .purple + attributedString.foregroundColor = Color("DamusPurple") return attributedString } @@ -161,13 +161,13 @@ func mention_str(_ m: Mention, profiles: Profiles) -> AttributedString { let disp = Profile.displayName(profile: profile, pubkey: pk) var attributedString = AttributedString(stringLiteral: "@\(disp)") attributedString.link = URL(string: "nostr:\(encode_pubkey_uri(m.ref))") - attributedString.foregroundColor = .purple + attributedString.foregroundColor = Color("DamusPurple") return attributedString case .event: let bevid = bech32_note_id(m.ref.ref_id) ?? m.ref.ref_id var attributedString = AttributedString(stringLiteral: "@\(abbrev_pubkey(bevid))") attributedString.link = URL(string: "nostr:\(encode_event_id_uri(m.ref))") - attributedString.foregroundColor = .purple + attributedString.foregroundColor = Color("DamusPurple") return attributedString } }