mirror of
https://github.com/mastodon/mastodon-ios
synced 2025-04-11 22:58:02 +02:00
Make UITableView background color clear IOS-137 (#998)
This commit is contained in:
parent
ebcb837b9a
commit
b4c08bf0c8
@ -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": {
|
||||
|
@ -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
|
||||
|
||||
|
@ -34,6 +34,7 @@ public protocol Theme {
|
||||
|
||||
var separator: UIColor { get }
|
||||
|
||||
var tableViewBackgroundColor: UIColor { get }
|
||||
var tableViewCellBackgroundColor: UIColor { get }
|
||||
var tableViewCellSelectionBackgroundColor: UIColor { get }
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user