mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-01 19:46:56 +01:00
31 lines
956 B
Swift
31 lines
956 B
Swift
//
|
|
// SettingsAccountTableViewCell.swift
|
|
// NetNewsWire-iOS
|
|
//
|
|
// Created by Maurice Parker on 10/23/19.
|
|
// Copyright © 2019 Ranchero Software. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
class SettingsAccountTableViewCell: VibrantTableViewCell {
|
|
|
|
@IBOutlet weak var accountImage: UIImageView!
|
|
@IBOutlet weak var accountNameLabel: UILabel!
|
|
|
|
override func setHighlighted(_ highlighted: Bool, animated: Bool) {
|
|
super.setHighlighted(highlighted, animated: animated)
|
|
let tintColor = isHighlighted || isSelected ? AppAssets.vibrantTextColor : UIColor.label
|
|
accountImage?.tintColor = tintColor
|
|
accountNameLabel?.highlightedTextColor = tintColor
|
|
}
|
|
|
|
override func setSelected(_ selected: Bool, animated: Bool) {
|
|
super.setSelected(selected, animated: animated)
|
|
let tintColor = isHighlighted || isSelected ? AppAssets.vibrantTextColor : UIColor.label
|
|
accountImage?.tintColor = tintColor
|
|
accountNameLabel?.highlightedTextColor = tintColor
|
|
}
|
|
|
|
}
|