Tinting added to Settings and Inspector

This commit is contained in:
Stuart Breckenridge 2020-10-27 15:10:30 +08:00
parent ee88e83548
commit 8661aae6b9
No known key found for this signature in database
GPG Key ID: 802A426F493CA19C
2 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ extension AccountInspectorViewController {
if section == 0 {
let headerView = tableView.dequeueReusableHeaderFooterView(withIdentifier: "SectionHeader") as! ImageHeaderView
headerView.imageView.image = AppAssets.image(for: account.type)
headerView.imageView.image = AppAssets.image(for: account.type)?.tinted(color: account.type.iconColor())
return headerView
} else {
return super.tableView(tableView, viewForHeaderInSection: section)

View File

@ -139,7 +139,7 @@ class SettingsViewController: UITableViewController {
let acctCell = tableView.dequeueReusableCell(withIdentifier: "SettingsComboTableViewCell", for: indexPath) as! SettingsComboTableViewCell
acctCell.applyThemeProperties()
let account = sortedAccounts[indexPath.row]
acctCell.comboImage?.image = AppAssets.image(for: account.type)
acctCell.comboImage?.image = AppAssets.image(for: account.type)?.tinted(color: account.type.iconColor())
acctCell.comboNameLabel?.text = account.nameForDisplay
cell = acctCell
}