-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy pathSubjectContentStyles.swift
30 lines (25 loc) · 1.07 KB
/
SubjectContentStyles.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import WordPressShared
public class SubjectContentStyles: FormattableContentStyles {
public var attributes: [NSAttributedString.Key: Any] {
return WPStyleGuide.Notifications.subjectRegularStyle
}
public var quoteStyles: [NSAttributedString.Key: Any]? {
return WPStyleGuide.Notifications.subjectItalicsStyle
}
public var rangeStylesMap: [FormattableRangeKind: [NSAttributedString.Key: Any]]? {
return [
.user: WPStyleGuide.Notifications.subjectRegularStyle,
.post: WPStyleGuide.Notifications.subjectRegularStyle,
.site: WPStyleGuide.Notifications.subjectRegularStyle,
.comment: WPStyleGuide.Notifications.subjectRegularStyle,
.blockquote: WPStyleGuide.Notifications.subjectQuotedStyle,
.noticon: WPStyleGuide.Notifications.subjectNoticonStyle
]
}
public var linksColor: UIColor?
public var key: String
public init(linkColor: UIColor? = nil, key: String = "SubjectContentStyles") {
self.linksColor = linkColor
self.key = key
}
}