mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-26 13:16:10 +10:00
make sure SocialAccount use the same disabledColor
This commit is contained in:
@@ -49,6 +49,8 @@ enum SocialAccount: String, CustomStringConvertible {
|
||||
return UIColor(red:0.15, green:0.36, blue:0.54, alpha:1)
|
||||
}
|
||||
}
|
||||
|
||||
static let disabledColor: UIColor = UIColor.lightGrayColor()
|
||||
|
||||
var iconName: String {
|
||||
|
||||
|
||||
@@ -44,6 +44,7 @@ class ProfileSocialAccountGithubCell: UICollectionViewCell {
|
||||
override func awakeFromNib() {
|
||||
super.awakeFromNib()
|
||||
|
||||
|
||||
reposImageView.tintColor = UIColor.darkGrayColor()
|
||||
starsImageView.tintColor = UIColor.darkGrayColor()
|
||||
|
||||
@@ -81,8 +82,8 @@ class ProfileSocialAccountGithubCell: UICollectionViewCell {
|
||||
iconImageView.image = UIImage(named: socialAccount.iconName)
|
||||
nameLabel.text = socialAccount.description
|
||||
|
||||
iconImageView.tintColor = UIColor.grayColor()
|
||||
nameLabel.textColor = UIColor.grayColor()
|
||||
iconImageView.tintColor = SocialAccount.disabledColor
|
||||
nameLabel.textColor = SocialAccount.disabledColor
|
||||
|
||||
var accountEnabled = false
|
||||
|
||||
|
||||
@@ -129,8 +129,8 @@ class ProfileSocialAccountImagesCell: UICollectionViewCell {
|
||||
iconImageView.image = UIImage(named: socialAccount.iconName)
|
||||
nameLabel.text = socialAccount.description
|
||||
|
||||
iconImageView.tintColor = UIColor.lightGrayColor()
|
||||
nameLabel.textColor = UIColor.lightGrayColor()
|
||||
iconImageView.tintColor = SocialAccount.disabledColor
|
||||
nameLabel.textColor = SocialAccount.disabledColor
|
||||
|
||||
var accountEnabled = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user