@@ -67,7 +67,7 @@ class DashboardPromptsCardCell: UICollectionViewCell, Reusable {
6767 private lazy var promptLabel : UILabel = {
6868 let label = UILabel ( )
6969 label. translatesAutoresizingMaskIntoConstraints = false
70- label. font = Style . promptContentFont
70+ label. font = WPStyleGuide . BloggingPrompts . promptContentFont
7171 label. textAlignment = . center
7272 label. numberOfLines = 0
7373 label. adjustsFontForContentSizeCategory = true
@@ -129,8 +129,8 @@ class DashboardPromptsCardCell: UICollectionViewCell, Reusable {
129129 let label = UILabel ( )
130130 label. translatesAutoresizingMaskIntoConstraints = false
131131 label. text = answerInfoText
132- label. font = Style . answerInfoLabelFont
133- label. textColor = Style . answerInfoLabelColor
132+ label. font = WPStyleGuide . BloggingPrompts . answerInfoLabelFont
133+ label. textColor = WPStyleGuide . BloggingPrompts . answerInfoLabelColor
134134 label. textAlignment = ( effectiveUserInterfaceLayoutDirection == . leftToRight ? . left : . right)
135135 label. numberOfLines = 0
136136 label. adjustsFontForContentSizeCategory = true
@@ -166,8 +166,8 @@ class DashboardPromptsCardCell: UICollectionViewCell, Reusable {
166166 let button = UIButton ( )
167167 button. translatesAutoresizingMaskIntoConstraints = false
168168 button. setTitle ( Strings . answerButtonTitle, for: . normal)
169- button. setTitleColor ( Style . buttonTitleColor, for: . normal)
170- button. titleLabel? . font = Style . buttonTitleFont
169+ button. setTitleColor ( WPStyleGuide . BloggingPrompts . buttonTitleColor, for: . normal)
170+ button. titleLabel? . font = WPStyleGuide . BloggingPrompts . buttonTitleFont
171171 button. titleLabel? . adjustsFontForContentSizeCategory = true
172172 button. titleLabel? . adjustsFontSizeToFitWidth = true
173173
@@ -178,8 +178,8 @@ class DashboardPromptsCardCell: UICollectionViewCell, Reusable {
178178
179179 private lazy var answeredLabel : UILabel = {
180180 let label = UILabel ( )
181- label. font = Style . buttonTitleFont
182- label. textColor = Style . answeredLabelColor
181+ label. font = WPStyleGuide . BloggingPrompts . buttonTitleFont
182+ label. textColor = WPStyleGuide . BloggingPrompts . answeredLabelColor
183183 label. text = Strings . answeredLabelTitle
184184
185185 // The 'answered' label needs to be close to the Share button.
@@ -195,8 +195,8 @@ class DashboardPromptsCardCell: UICollectionViewCell, Reusable {
195195 let button = UIButton ( )
196196 button. translatesAutoresizingMaskIntoConstraints = false
197197 button. setTitle ( Strings . shareButtonTitle, for: . normal)
198- button. setTitleColor ( Style . buttonTitleColor, for: . normal)
199- button. titleLabel? . font = Style . buttonTitleFont
198+ button. setTitleColor ( WPStyleGuide . BloggingPrompts . buttonTitleColor, for: . normal)
199+ button. titleLabel? . font = WPStyleGuide . BloggingPrompts . buttonTitleFont
200200 button. titleLabel? . adjustsFontForContentSizeCategory = true
201201 button. titleLabel? . adjustsFontSizeToFitWidth = true
202202 button. contentHorizontalAlignment = . leading
@@ -353,12 +353,6 @@ private extension DashboardPromptsCardCell {
353353 struct Style {
354354 static let frameIconImage = UIImage ( named: " icon-lightbulb-outline " ) ? . resizedImage ( Constants . cardIconSize, interpolationQuality: . default)
355355 static let avatarPlaceholderImage = UIImage ( color: . quaternarySystemFill)
356- static let promptContentFont = WPStyleGuide . serifFontForTextStyle ( . headline, fontWeight: . semibold)
357- static let answerInfoLabelFont = WPStyleGuide . fontForTextStyle ( . caption1)
358- static let answerInfoLabelColor = UIColor . primary
359- static let buttonTitleFont = WPStyleGuide . fontForTextStyle ( . subheadline)
360- static let buttonTitleColor = UIColor . primary
361- static let answeredLabelColor = UIColor . muriel ( name: . green, . shade50)
362356 }
363357
364358 struct Constants {
0 commit comments