diff --git a/Localization/app.json b/Localization/app.json index 24b285ace..13a41725c 100644 --- a/Localization/app.json +++ b/Localization/app.json @@ -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": { diff --git a/MastodonSDK/Sources/MastodonCore/Service/Theme/SystemTheme.swift b/MastodonSDK/Sources/MastodonCore/Service/Theme/SystemTheme.swift index 5c20e75d6..528177baf 100644 --- a/MastodonSDK/Sources/MastodonCore/Service/Theme/SystemTheme.swift +++ b/MastodonSDK/Sources/MastodonCore/Service/Theme/SystemTheme.swift @@ -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 diff --git a/MastodonSDK/Sources/MastodonCore/Service/Theme/Theme.swift b/MastodonSDK/Sources/MastodonCore/Service/Theme/Theme.swift index bfe8e9c6e..b5bb00f44 100644 --- a/MastodonSDK/Sources/MastodonCore/Service/Theme/Theme.swift +++ b/MastodonSDK/Sources/MastodonCore/Service/Theme/Theme.swift @@ -34,6 +34,7 @@ public protocol Theme { var separator: UIColor { get } + var tableViewBackgroundColor: UIColor { get } var tableViewCellBackgroundColor: UIColor { get } var tableViewCellSelectionBackgroundColor: UIColor { get } diff --git a/MastodonSDK/Sources/MastodonCore/Service/Theme/ThemeService.swift b/MastodonSDK/Sources/MastodonCore/Service/Theme/ThemeService.swift index ed7418401..a3316fe69 100644 --- a/MastodonSDK/Sources/MastodonCore/Service/Theme/ThemeService.swift +++ b/MastodonSDK/Sources/MastodonCore/Service/Theme/ThemeService.swift @@ -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