commit 75fd8de456e427444db5c6369491afbaa758229f
parent 71f7ea47df67f0a5ff8f85d5cfd72a610fe51242
Author: Swift <scoder1747@gmail.com>
Date: Fri, 24 Feb 2023 18:56:00 -0500
Fix post text in darkmode
Closes: #693
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/damus/Views/Posting/UserSearch.swift b/damus/Views/Posting/UserSearch.swift
@@ -55,6 +55,7 @@ struct UserSearch: View {
attributes: [NSAttributedString.Key.font: UIFont.systemFont(ofSize: 18.0),
NSAttributedString.Key.link: "@\(pk)"])
tagAttributedString.removeAttribute(.link, range: NSRange(location: tagAttributedString.length - 2, length: 2))
+ tagAttributedString.addAttributes([NSAttributedString.Key.foregroundColor: UIColor.label], range: NSRange(location: tagAttributedString.length - 2, length: 2))
let mutableString = NSMutableAttributedString()
mutableString.append(post)
mutableString.append(tagAttributedString)
diff --git a/damus/Views/TextViewWrapper.swift b/damus/Views/TextViewWrapper.swift
@@ -14,7 +14,7 @@ struct TextViewWrapper: UIViewRepresentable {
let textView = UITextView()
textView.delegate = context.coordinator
textView.font = UIFont.systemFont(ofSize: 18)
- //textView.textColor = UIColor.black
+ textView.textColor = UIColor.label
let linkAttributes: [NSAttributedString.Key : Any] = [
NSAttributedString.Key.foregroundColor: UIColor(Color.accentColor)]
textView.linkTextAttributes = linkAttributes