Convert AppAssets to shared Assets.

This commit is contained in:
Brent Simmons committed 2025-11-19 10:38:18 -08:00
1 parent 33cf97a59b
commit beeeabba24
42 files changed
+288 -316

No files matched your search

+3 -3
View File
@@ -10,7 +10,7 @@ import UIKit
final class VibrantButton: UIButton {
@IBInspectable var backgroundHighlightColor: UIColor = AppAssets.secondaryAccentColor
@IBInspectable var backgroundHighlightColor: UIColor = Assets.Colors.secondaryAccent
override init(frame: CGRect) {
super.init(frame: frame)
@@ -22,8 +22,8 @@ final class VibrantButton: UIButton {
}
private func commonInit() {
setTitleColor(AppAssets.vibrantTextColor, for: .highlighted)
let disabledColor = AppAssets.secondaryAccentColor.withAlphaComponent(0.5)
setTitleColor(Assets.Colors.vibrantText, for: .highlighted)
let disabledColor = Assets.Colors.secondaryAccent.withAlphaComponent(0.5)
setTitleColor(disabledColor, for: .disabled)
}
+1 -1
View File
@@ -21,7 +21,7 @@ final class VibrantLabel: UILabel {
}
private func commonInit() {
highlightedTextColor = AppAssets.vibrantTextColor
highlightedTextColor = Assets.Colors.vibrantText
}
}
@@ -13,11 +13,11 @@ class VibrantTableViewCell: UITableViewCell {
static let duration: TimeInterval = 0.6
var labelColor: UIColor {
return isHighlighted || isSelected ? AppAssets.vibrantTextColor : UIColor.label
return isHighlighted || isSelected ? Assets.Colors.vibrantText : UIColor.label
}
var secondaryLabelColor: UIColor {
return isHighlighted || isSelected ? AppAssets.vibrantTextColor : UIColor.secondaryLabel
return isHighlighted || isSelected ? Assets.Colors.vibrantText : UIColor.secondaryLabel
}
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
@@ -47,7 +47,7 @@ class VibrantTableViewCell: UITableViewCell {
/// Subclass overrides should call super
func applyThemeProperties() {
let selectedBackgroundView = UIView(frame: .zero)
selectedBackgroundView.backgroundColor = AppAssets.secondaryAccentColor
selectedBackgroundView.backgroundColor = Assets.Colors.secondaryAccent
self.selectedBackgroundView = selectedBackgroundView
}
@@ -80,7 +80,7 @@ class VibrantBasicTableViewCell: VibrantTableViewCell {
@IBInspectable var imageSelected: UIImage?
var iconTint: UIColor {
return isHighlighted || isSelected ? labelColor : AppAssets.primaryAccentColor
return isHighlighted || isSelected ? labelColor : Assets.Colors.primaryAccent
}
var iconImage: UIImage? {