Skip to content

Commit 8af5605

Browse files
committed
Fix wrong light mode colors
1 parent 196ee9b commit 8af5605

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"colors" : [
3+
{
4+
"color" : {
5+
"platform" : "ios",
6+
"reference" : "systemGroupedBackgroundColor"
7+
},
8+
"idiom" : "universal"
9+
},
10+
{
11+
"appearances" : [
12+
{
13+
"appearance" : "luminosity",
14+
"value" : "dark"
15+
}
16+
],
17+
"color" : {
18+
"color-space" : "srgb",
19+
"components" : {
20+
"alpha" : "1.000",
21+
"blue" : "0.059",
22+
"green" : "0.059",
23+
"red" : "0.059"
24+
}
25+
},
26+
"idiom" : "universal"
27+
}
28+
],
29+
"info" : {
30+
"author" : "xcode",
31+
"version" : 1
32+
}
33+
}

ForPDA/Sources/Views/ViewControllers/PDAViewController.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ internal class PDAViewController<CustomView: UIView>: UIViewController {
4242
view.backgroundColor = color == .dark ? R.color.nearBlack() : .systemBackground
4343
for subview in view.subviews {
4444
if let tableView = subview as? UITableView {
45-
tableView.backgroundColor = color == .dark ? R.color.nearBlack() : .systemBackground
45+
if tableView.style == .plain {
46+
tableView.backgroundColor = color == .dark ? R.color.nearBlack() : .systemBackground
47+
} else {
48+
tableView.backgroundColor = color == .dark ? R.color.nearBlackGrouped() : .systemGroupedBackground
49+
}
4650
}
4751
if let collectionView = subview as? UICollectionView {
4852
collectionView.backgroundColor = color == .dark ? R.color.nearBlack() : .systemBackground

0 commit comments

Comments
 (0)