Skip to content

Commit

Permalink
Update colors
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsen-schibsted committed Aug 16, 2024
1 parent f1c50e3 commit 70f8c79
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ final class FavoriteFolderActionButton: UIButton {

private lazy var separatorView: UIView = {
let view = UIView()
view.backgroundColor = .textDisabled
view.backgroundColor = .border
view.isHidden = isSeparatorHidden
return view
}()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class FavoriteFolderShareLinkView: UIView {

var isEnabled = true {
didSet {
iconImageView.tintColor = isEnabled ? .iconPrimary : .backgroundDisabled
iconImageView.tintColor = isEnabled ? .icon : .backgroundDisabled
descriptionLabel.textColor = isEnabled ? .text : .textDisabled
button.isEnabled = isEnabled
}
Expand All @@ -23,7 +23,7 @@ final class FavoriteFolderShareLinkView: UIView {
private lazy var iconImageView: UIImageView = {
let imageView = UIImageView(withAutoLayout: true)
imageView.image = UIImage(named: .favoritesShareLink).withRenderingMode(.alwaysTemplate)
imageView.tintColor = .iconPrimary
imageView.tintColor = .icon
imageView.contentMode = .scaleAspectFit
return imageView
}()
Expand Down Expand Up @@ -64,7 +64,7 @@ final class FavoriteFolderShareLinkView: UIView {
}

private func setup() {
backgroundColor = .backgroundInfoSubtle
backgroundColor = .backgroundSubtle

addSubview(iconImageView)
addSubview(descriptionLabel)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ final class FavoriteFolderShareToggleView: UIView {
var isEnabled = true {
didSet {
titleLabel.textColor = isEnabled ? .text : .textDisabled
iconImageView.tintColor = isEnabled ? .iconPrimary : .backgroundDisabled
iconImageView.tintColor = isEnabled ? .icon : .backgroundDisabled
switchControl.isEnabled = isEnabled
}
}
Expand All @@ -31,7 +31,7 @@ final class FavoriteFolderShareToggleView: UIView {
private lazy var iconImageView: UIImageView = {
let imageView = UIImageView(withAutoLayout: true)
imageView.image = UIImage(named: .favoritesShare).withRenderingMode(.alwaysTemplate)
imageView.tintColor = .iconPrimary
imageView.tintColor = .icon
imageView.contentMode = .scaleAspectFit
return imageView
}()
Expand All @@ -45,7 +45,7 @@ final class FavoriteFolderShareToggleView: UIView {

private lazy var separatorView: UIView = {
let view = UIView(withAutoLayout: true)
view.backgroundColor = .textDisabled
view.backgroundColor = .border
view.isHidden = isSeparatorHidden
return view
}()
Expand All @@ -70,8 +70,6 @@ final class FavoriteFolderShareToggleView: UIView {
}

private func setup() {
backgroundColor = .background

addSubview(iconImageView)
addSubview(titleLabel)
addSubview(switchControl)
Expand Down

0 comments on commit 70f8c79

Please sign in to comment.