damus

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

commit d1a77891c79e6c36dc8b56bad61795764ab20cdd
parent 20505236ae5b1afefb5cdd27d9314242d0358acd
Author: Joel Klabo <joelklabo@gmail.com>
Date:   Wed,  8 Mar 2023 16:27:14 -0800

Make DM Content More Visible

Changelog-Changed: Make DM Content More Visible
Closes: #760

Diffstat:
Mdamus/Views/DMView.swift | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/damus/Views/DMView.swift b/damus/Views/DMView.swift @@ -24,9 +24,10 @@ struct DMView: View { let should_show_img = should_show_images(contacts: damus_state.contacts, ev: event, our_pubkey: damus_state.pubkey) NoteContentView(damus_state: damus_state, event: event, show_images: should_show_img, size: .normal, artifacts: .just_content(event.get_content(damus_state.keypair.privkey)), truncate: false) - .foregroundColor(is_ours ? Color.white : Color.primary) .padding(10) - .background(is_ours ? Color.accentColor : Color.secondary.opacity(0.15)) + .background(VisualEffectView(effect: UIBlurEffect(style: .prominent)) + .background(is_ours ? Color.accentColor.opacity(0.9) : Color.secondary.opacity(0.15)) + ) .cornerRadius(8.0) .tint(is_ours ? Color.white : Color.accentColor) if !is_ours {