Tinting added to Settings and Inspector
This commit is contained in:
parent
ee88e83548
commit
8661aae6b9
@ -135,7 +135,7 @@ extension AccountInspectorViewController {
|
|||||||
|
|
||||||
if section == 0 {
|
if section == 0 {
|
||||||
let headerView = tableView.dequeueReusableHeaderFooterView(withIdentifier: "SectionHeader") as! ImageHeaderView
|
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
|
return headerView
|
||||||
} else {
|
} else {
|
||||||
return super.tableView(tableView, viewForHeaderInSection: section)
|
return super.tableView(tableView, viewForHeaderInSection: section)
|
||||||
|
@ -139,7 +139,7 @@ class SettingsViewController: UITableViewController {
|
|||||||
let acctCell = tableView.dequeueReusableCell(withIdentifier: "SettingsComboTableViewCell", for: indexPath) as! SettingsComboTableViewCell
|
let acctCell = tableView.dequeueReusableCell(withIdentifier: "SettingsComboTableViewCell", for: indexPath) as! SettingsComboTableViewCell
|
||||||
acctCell.applyThemeProperties()
|
acctCell.applyThemeProperties()
|
||||||
let account = sortedAccounts[indexPath.row]
|
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
|
acctCell.comboNameLabel?.text = account.nameForDisplay
|
||||||
cell = acctCell
|
cell = acctCell
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user