Skip to content

Commit a817c3e

Browse files
authored
Merge pull request #1339 from woocommerce/issue/1338-darkmode-shipment-tracking
Set background colour of cells when adding shipment tracking
2 parents 1ff933d + c008459 commit a817c3e

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

WooCommerce/Classes/ViewRelated/ReusableViews/StatusListTableViewCell.swift

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ final class StatusListTableViewCell: UITableViewCell {
1818

1919
override func awakeFromNib() {
2020
super.awakeFromNib()
21+
22+
configureBackground()
2123
styleCheckmark()
2224
}
2325

@@ -34,8 +36,15 @@ final class StatusListTableViewCell: UITableViewCell {
3436
super.setSelected(selected, animated: animated)
3537
accessoryType = selected ? .checkmark : .none
3638
}
39+
}
40+
41+
42+
private extension StatusListTableViewCell {
43+
func configureBackground() {
44+
applyDefaultBackgroundStyle()
45+
}
3746

38-
private func styleCheckmark() {
47+
func styleCheckmark() {
3948
tintColor = StyleManager.wooCommerceBrandColor
4049
}
4150
}

WooCommerce/Classes/ViewRelated/ReusableViews/TitleAndEditableValueTableViewCell.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ final class TitleAndEditableValueTableViewCell: UITableViewCell {
66

77
override func awakeFromNib() {
88
super.awakeFromNib()
9+
configureBackground()
910
configureAsNonSelectable()
1011
styleTitle()
1112
styleValue()
@@ -14,6 +15,10 @@ final class TitleAndEditableValueTableViewCell: UITableViewCell {
1415

1516

1617
private extension TitleAndEditableValueTableViewCell {
18+
func configureBackground() {
19+
applyDefaultBackgroundStyle()
20+
}
21+
1722
func configureAsNonSelectable() {
1823
selectionStyle = .none
1924
}

0 commit comments

Comments
 (0)