@@ -60,11 +60,11 @@ extension StringStyles {
6060 /// Styles: Notifications List / Subject Block
6161 ///
6262 static let subject : StringStyles = {
63- let regular : Style = [ . paragraphStyle: NSParagraphStyle . subheadline , . font: UIFont . subheadline , . foregroundColor: StyleManager . defaultTextColor]
64- let bold : Style = [ . paragraphStyle: NSParagraphStyle . subheadline , . font: UIFont . subheadline . bold]
65- let blockquote : Style = [ . paragraphStyle: NSParagraphStyle . subheadline , . font: UIFont . subheadline . italics]
66- let italics : Style = [ . paragraphStyle: NSParagraphStyle . subheadline , . font: UIFont . subheadline . italics]
67- let noticon : Style = [ . paragraphStyle: NSParagraphStyle . subheadline , . font: UIFont . noticon ( forStyle: . subheadline ) , . foregroundColor: NukeMe . subjectNoticonColor ]
63+ let regular : Style = [ . paragraphStyle: NSParagraphStyle . body , . font: UIFont . body , . foregroundColor: StyleManager . defaultTextColor]
64+ let bold : Style = [ . paragraphStyle: NSParagraphStyle . body , . font: UIFont . body . bold]
65+ let blockquote : Style = [ . paragraphStyle: NSParagraphStyle . body , . font: UIFont . body . italics]
66+ let italics : Style = [ . paragraphStyle: NSParagraphStyle . body , . font: UIFont . body . italics]
67+ let noticon : Style = [ . paragraphStyle: NSParagraphStyle . body , . font: UIFont . noticon ( forStyle: . body ) , . foregroundColor: StyleManager . wooGreyMid ]
6868
6969 return StringStyles ( regular: regular, bold: bold, blockquote: blockquote, italics: italics, match: nil , noticon: noticon)
7070 } ( )
@@ -73,18 +73,17 @@ extension StringStyles {
7373 /// Styles: Notifications List / Snippet Block
7474 ///
7575 static let snippet : StringStyles = {
76- let regular : Style = [ . paragraphStyle: NSParagraphStyle . subheadline, . font: UIFont . footnote, . foregroundColor: StyleManager . defaultTextColor]
77-
76+ let regular : Style = [ . paragraphStyle: NSParagraphStyle . footnote, . font: UIFont . footnote, . foregroundColor: StyleManager . defaultTextColor]
7877 return StringStyles ( regular: regular)
7978 } ( )
8079
8180
8281 /// Styles: Notification Defailts / Header Block
8382 ///
8483 static let header : StringStyles = {
85- let regular : Style = [ . font: UIFont . body, . foregroundColor: NukeMe . bodyTextColor ]
86- let bold : Style = [ . font: UIFont . body. bold, . foregroundColor: NukeMe . bodyTextColor ]
87- let italics : Style = [ . font: UIFont . body. italics, . foregroundColor: NukeMe . headerItalicsColor ]
84+ let regular : Style = [ . font: UIFont . body, . foregroundColor: StyleManager . defaultTextColor ]
85+ let bold : Style = [ . font: UIFont . body. bold, . foregroundColor: StyleManager . defaultTextColor ]
86+ let italics : Style = [ . font: UIFont . body. italics, . foregroundColor: StyleManager . defaultTextColor ]
8887
8988 return StringStyles ( regular: regular, bold: bold, italics: italics)
9089 } ( )
@@ -93,7 +92,7 @@ extension StringStyles {
9392 /// Styles: Notification Defailts / Footer Block
9493 ///
9594 static let footer : StringStyles = {
96- let regular : Style = [ . paragraphStyle: NSParagraphStyle . body, . font: UIFont . body, . foregroundColor: NukeMe . footerTextColor ]
95+ let regular : Style = [ . paragraphStyle: NSParagraphStyle . body, . font: UIFont . body, . foregroundColor: StyleManager . defaultTextColor ]
9796
9897 return StringStyles ( regular: regular, noticon: body. noticon)
9998 } ( )
@@ -102,30 +101,14 @@ extension StringStyles {
102101 /// Styles: Notification Defailts / Body Blocks
103102 ///
104103 static let body : StringStyles = {
105- let regular : Style = [ . paragraphStyle: NSParagraphStyle . body, . font: UIFont . body, . foregroundColor: NukeMe . bodyTextColor ]
106- let bold : Style = [ . paragraphStyle: NSParagraphStyle . body, . font: UIFont . body. bold, . foregroundColor: NukeMe . bodyTextColor ]
107- let blockquote : Style = [ . paragraphStyle: NSParagraphStyle . body, . font: UIFont . body. italics, . foregroundColor: NukeMe . bodyBlockquotedColor ]
108- let match : Style = [ . paragraphStyle: NSParagraphStyle . body, . font: UIFont . body. bold, . foregroundColor: NukeMe . bodyLinkColor ]
109- let noticon : Style = [ . paragraphStyle: NSParagraphStyle . body, . font: UIFont . noticon ( forStyle: . body) , . foregroundColor: NukeMe . bodyNoticonColor ]
110- let italic : Style = [ . paragraphStyle: NSParagraphStyle . body, . font: UIFont . body. italics, . foregroundColor: NukeMe . bodyTextColor ]
111- let link : Style = [ . foregroundColor: NukeMe . bodyLinkColor ]
104+ let regular : Style = [ . paragraphStyle: NSParagraphStyle . body, . font: UIFont . body, . foregroundColor: StyleManager . defaultTextColor ]
105+ let bold : Style = [ . paragraphStyle: NSParagraphStyle . body, . font: UIFont . body. bold, . foregroundColor: StyleManager . defaultTextColor ]
106+ let blockquote : Style = [ . paragraphStyle: NSParagraphStyle . body, . font: UIFont . body. italics, . foregroundColor: StyleManager . defaultTextColor ]
107+ let match : Style = [ . paragraphStyle: NSParagraphStyle . body, . font: UIFont . body. bold, . foregroundColor: StyleManager . defaultTextColor ]
108+ let noticon : Style = [ . paragraphStyle: NSParagraphStyle . body, . font: UIFont . noticon ( forStyle: . body) , . foregroundColor: StyleManager . defaultTextColor ]
109+ let italic : Style = [ . paragraphStyle: NSParagraphStyle . body, . font: UIFont . body. italics, . foregroundColor: StyleManager . defaultTextColor ]
110+ let link : Style = [ . foregroundColor: StyleManager . wooCommerceBrandColor ]
112111
113112 return StringStyles ( regular: regular, bold: bold, blockquote: blockquote, match: match, noticon: noticon, link: link)
114113 } ( )
115114}
116-
117-
118- // MARK: - TODO: Nuke this. Map the Colors, as required, from the StyleManager
119- //
120- private struct NukeMe {
121- static let subjectNoticonColor = UIColor . black
122-
123- static let headerItalicsColor = UIColor . gray
124-
125- static let bodyTextColor = UIColor . black
126- static let bodyBlockquotedColor = UIColor . black
127- static let bodyLinkColor = UIColor . black
128- static let bodyNoticonColor = UIColor . black
129-
130- static let footerTextColor = UIColor . black
131- }
0 commit comments