Skip to content

Commit

Permalink
Merge pull request #779 from Infomaniak/webview-links-color
Browse files Browse the repository at this point in the history
feat(MessageView): Change links
  • Loading branch information
Ambrdctr committed Jun 7, 2023
2 parents df6b791 + 4009e26 commit 969bf12
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Mail/Views/Thread/SelectableTextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions MailResources/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 969bf12

Please sign in to comment.