Add the option to select the user interface color palette. Issue #1900

This commit is contained in:
Maurice Parker
2020-03-15 04:25:25 -05:00
parent 07dc4f1f10
commit a620a20588
7 changed files with 310 additions and 135 deletions

View File

@@ -71,6 +71,7 @@ class VibrantTableViewCell: UITableViewCell {
class VibrantBasicTableViewCell: VibrantTableViewCell {
@IBOutlet private var label: UILabel!
@IBOutlet private var detail: UILabel!
@IBOutlet private var icon: UIImageView!
@IBInspectable var imageNormal: UIImage?
@@ -88,6 +89,7 @@ class VibrantBasicTableViewCell: VibrantTableViewCell {
super.updateVibrancy(animated: animated)
updateIconVibrancy(icon, color: iconTint, image: iconImage, animated: animated)
updateLabelVibrancy(label, color: labelColor, animated: animated)
updateLabelVibrancy(detail, color: secondaryLabelColor, animated: animated)
}
private func updateIconVibrancy(_ icon: UIImageView?, color: UIColor, image: UIImage?, animated: Bool) {