From 4009e26f33ccc4cc33cd4708af98f1c27de111c5 Mon Sep 17 00:00:00 2001 From: Valentin Perignon Date: Wed, 7 Jun 2023 11:12:33 +0200 Subject: [PATCH] feat(MessageView): Change links --- Mail/Views/Thread/SelectableTextView.swift | 1 + MailResources/css/style.css | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Mail/Views/Thread/SelectableTextView.swift b/Mail/Views/Thread/SelectableTextView.swift index 728bdfe55..e74dffd45 100644 --- a/Mail/Views/Thread/SelectableTextView.swift +++ b/Mail/Views/Thread/SelectableTextView.swift @@ -34,6 +34,7 @@ struct SelectableTextView: UIViewRepresentable { textView.textContainer.lineFragmentPadding = 0 textView.font = .systemFont(ofSize: 16) textView.textColor = UIColor(MailTextStyle.body.color) + textView.linkTextAttributes = [.underlineStyle: 1, .foregroundColor: UIColor.tintColor] textView.setContentCompressionResistancePriority(.defaultLow, for: .horizontal) return textView diff --git a/MailResources/css/style.css b/MailResources/css/style.css index 9ffcb4ff4..8b8c0b839 100644 --- a/MailResources/css/style.css +++ b/MailResources/css/style.css @@ -23,3 +23,7 @@ blockquote blockquote blockquote blockquote { padding: 0 !important; border: none !important; } + +a:link, a:visited, a:hover, a:active { + color: var(--kmail-primary-color); +}