Skip to content

Commit 092250a

Browse files
committed
StyleManager: New Style
1 parent abeb676 commit 092250a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

WooCommerce/Classes/Authentication/Epilogue/StorePickerViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class StorePickerViewController: UIViewController {
1616
///
1717
@IBOutlet private var noResultsLabel: UILabel! {
1818
didSet {
19-
noResultsLabel.font = UIFont.font(forStyle: .subheadline, weight: .regular)
19+
noResultsLabel.font = StyleManager.subheadlineFont
2020
noResultsLabel.textColor = StyleManager.wooGreyTextMin
2121
}
2222
}

WooCommerce/Classes/Styles/Style.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ protocol Style {
2525
var statusPrimaryBoldColor: UIColor { get }
2626
var statusSuccessColor: UIColor { get }
2727
var statusSuccessBoldColor: UIColor { get }
28+
var subheadlineFont: UIFont { get }
2829
var tableViewBackgroundColor: UIColor { get }
2930
var wooCommerceBrandColor: UIColor { get }
3031
var wooGreyMid: UIColor { get }
@@ -55,6 +56,7 @@ class DefaultStyle: Style {
5556
let statusPrimaryBoldColor = UIColor(red: 188.0/255.0, green: 222.0/255.0, blue: 238.0/255.0, alpha: 1.0)
5657
let statusSuccessColor = UIColor(red: 239.00/255.0, green: 249.0/255.0, blue: 230.0/255.0, alpha: 1.0)
5758
let statusSuccessBoldColor = UIColor(red: 201.0/255.0, green: 233.0/255.0, blue: 169.0/255.0, alpha: 1.0)
59+
let subheadlineFont = UIFont.font(forStyle: .subheadline, weight: .regular)
5860
let tableViewBackgroundColor = UIColor(red: 247.0/255.0, green: 247.0/255.0, blue: 247.0/255.0, alpha: 1.0)
5961
let wooCommerceBrandColor = UIColor(red: 0x96/255.0, green: 0x58/255.0, blue: 0x8A/255.0, alpha: 0xFF/255.0)
6062
let wooGreyMid = UIColor(red: 150.0/255.0, green: 150.0/255.0, blue: 150.0/255.0, alpha: 1.0)
@@ -163,6 +165,10 @@ class StyleManager {
163165
return active.sectionTitleColor
164166
}
165167

168+
static var subheadlineFont: UIFont {
169+
return active.subheadlineFont
170+
}
171+
166172
static var tableViewBackgroundColor: UIColor {
167173
return active.tableViewBackgroundColor
168174
}

0 commit comments

Comments
 (0)