make sure SocialAccount use the same disabledColor

This commit is contained in:
nixzhu
2015-11-06 13:36:28 +08:00
parent ea7cab0390
commit b7d295bd94
3 changed files with 7 additions and 4 deletions
@@ -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