Skip to content

Commit acba6fa

Browse files
committed
Set background of cells for the store picker
1 parent 9344f83 commit acba6fa

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

WooCommerce/Classes/Authentication/Epilogue/EmptyStoresTableViewCell.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,17 @@ class EmptyStoresTableViewCell: UITableViewCell {
1616
comment: "Displayed during the Login flow, whenever the user has no woo stores associated.")
1717
}
1818
}
19+
20+
override func awakeFromNib() {
21+
super.awakeFromNib()
22+
23+
configureBackground()
24+
}
25+
}
26+
27+
28+
private extension EmptyStoresTableViewCell {
29+
func configureBackground() {
30+
applyDefaultBackgroundStyle()
31+
}
1932
}

WooCommerce/Classes/Authentication/Epilogue/StoreTableViewCell.swift

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ class StoreTableViewCell: UITableViewCell {
7373

7474
override func awakeFromNib() {
7575
super.awakeFromNib()
76-
nameLabel.textColor = StyleManager.wooSecondary
77-
urlLabel.textColor = StyleManager.wooSecondary
76+
configureBackground()
77+
configureNameLabel()
78+
configureUrlLabel()
7879
}
7980

8081
/// Displays (or hides) the Checkmark ContainerView, based on the `allowsCheckmark` property.
@@ -89,3 +90,18 @@ class StoreTableViewCell: UITableViewCell {
8990
checkmarkImageView.image = displaysCheckmark ? .checkmarkStyledImage : nil
9091
}
9192
}
93+
94+
95+
private extension StoreTableViewCell {
96+
func configureBackground() {
97+
applyDefaultBackgroundStyle()
98+
}
99+
100+
func configureNameLabel() {
101+
nameLabel.textColor = StyleManager.wooSecondary
102+
}
103+
104+
func configureUrlLabel() {
105+
urlLabel.textColor = StyleManager.wooSecondary
106+
}
107+
}

0 commit comments

Comments
 (0)