Skip to content

Commit dba9c7d

Browse files
committed
update badge to use POS colors
1 parent 780a18d commit dba9c7d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

WooCommerce/Classes/Extensions/UILabel+SalesChannel.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ extension UILabel {
66
func applySalesChannelStyle() {
77
applyFootnoteStyle()
88
applyLayerSettings()
9-
backgroundColor = .lightGray
10-
textColor = .black
9+
backgroundColor = Layout.salesChannelLabelBackgroundColor
10+
textColor = Layout.salesChannelLabelTextColor
1111
}
1212

1313
/// Setup: Layer
@@ -23,5 +23,7 @@ private extension UILabel {
2323
enum Layout {
2424
static let borderWidth = CGFloat(0.0)
2525
static let cornerRadius = CGFloat(4.0)
26+
static let salesChannelLabelTextColor = UIColor(named: "posPrimary")
27+
static let salesChannelLabelBackgroundColor = UIColor(named: "posSecondary")
2628
}
2729
}

0 commit comments

Comments
 (0)