Make UITableView background color clear IOS-137 (#998)

This commit is contained in:
Marcus Kida 2023-03-30 22:18:19 +02:00 committed by GitHub
parent ebcb837b9a
commit b4c08bf0c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 2 deletions

View File

@ -349,7 +349,7 @@
"server": "Privacy Policy - %s"
},
"button": {
"confirm": "I agree"
"confirm": "I Agree"
}
},
"register": {
@ -420,7 +420,7 @@
"terms_of_service": "terms of service",
"privacy_policy": "privacy policy",
"button": {
"confirm": "I agree"
"confirm": "I Agree"
}
},
"confirm_email": {

View File

@ -35,6 +35,7 @@ struct SystemTheme: Theme {
let separator = Asset.Theme.System.separator.color
let tableViewBackgroundColor: UIColor = .clear
let tableViewCellBackgroundColor = Asset.Theme.System.tableViewCellBackground.color
let tableViewCellSelectionBackgroundColor = Asset.Theme.System.tableViewCellSelectionBackground.color

View File

@ -34,6 +34,7 @@ public protocol Theme {
var separator: UIColor { get }
var tableViewBackgroundColor: UIColor { get }
var tableViewCellBackgroundColor: UIColor { get }
var tableViewCellSelectionBackgroundColor: UIColor { get }

View File

@ -77,6 +77,7 @@ extension ThemeService {
UITabBar.appearance().barTintColor = theme.tabBarBackgroundColor
// set table view cell appearance
UITableView.appearance().backgroundColor = theme.tableViewBackgroundColor
UITableViewCell.appearance().backgroundColor = theme.tableViewCellBackgroundColor
// FIXME: refactor
// UITableViewCell.appearance(whenContainedInInstancesOf: [SettingsViewController.self]).backgroundColor = theme.secondarySystemGroupedBackgroundColor