Skip to content

Commit 776e751

Browse files
authored
Merge pull request #1345 from woocommerce/issue/1344-dark-mode-product-details
Xcode 11 + Dark mode: Order details > Product details
2 parents 0b475ff + 0d107a9 commit 776e751

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

WooCommerce/Classes/ViewRelated/Products/Cells/ProductReviewsTableViewCell.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,17 @@ final class ProductReviewsTableViewCell: UITableViewCell {
2424
override func awakeFromNib() {
2525
super.awakeFromNib()
2626

27+
configureBackground()
2728
configureLabels()
2829
configureStarView()
2930
}
31+
}
32+
33+
34+
private extension ProductReviewsTableViewCell {
35+
func configureBackground() {
36+
applyDefaultBackgroundStyle()
37+
}
3038

3139
func configureLabels() {
3240
reviewLabel.applyBodyStyle()

WooCommerce/Classes/ViewRelated/Products/Cells/TitleBodyTableViewCell.swift

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,23 @@ final class TitleBodyTableViewCell: UITableViewCell {
88
override func awakeFromNib() {
99
super.awakeFromNib()
1010

11+
configureBackground()
12+
configureTitleLabel()
13+
configureBodyLabel()
14+
}
15+
}
16+
17+
18+
private extension TitleBodyTableViewCell {
19+
func configureBackground() {
20+
applyDefaultBackgroundStyle()
21+
}
22+
23+
func configureTitleLabel() {
1124
titleLabel?.applyHeadlineStyle()
25+
}
26+
27+
func configureBodyLabel() {
1228
bodyLabel?.applySecondaryBodyStyle()
1329
}
1430
}

WooCommerce/Classes/ViewRelated/ReusableViews/TwoColumnTableViewCell.swift

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,23 @@ final class TwoColumnTableViewCell: UITableViewCell {
1212
super.awakeFromNib()
1313

1414
stackView.isLayoutMarginsRelativeArrangement = true
15+
configureBackground()
16+
configureLeftLabel()
17+
configureRightLabel()
18+
}
19+
}
20+
21+
22+
private extension TwoColumnTableViewCell {
23+
func configureBackground() {
24+
applyDefaultBackgroundStyle()
25+
}
26+
27+
func configureLeftLabel() {
1528
leftLabel.applyBodyStyle()
29+
}
30+
31+
func configureRightLabel() {
1632
rightLabel.applyBodyStyle()
1733
}
1834
}

0 commit comments

Comments
 (0)