Skip to content

Commit

Permalink
-email and phone images now change colors to match the theme
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCrabbe committed Jul 8, 2014
1 parent c94570b commit ac61528
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ -(void)build{
self.addressButton.layer.cornerRadius = 12;
self.backgroundColor = styleColor;
self.selectionStyle = UITableViewCellSelectionStyleNone;
[self.addressButton setTitleColor:textColor forState:UIControlStateHighlighted];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#import "UIImageView+WebCache.h"
#import "Colours.h"
#import "UIColor+UPColors.h"
#import "UIImage+UPImage.h"
@import QuartzCore;

@interface DirectoryTableViewCell ()
Expand Down Expand Up @@ -59,6 +60,8 @@ -(void)buildWtihEmployee:(Employee *)emp{
self.employeeName.backgroundColor = styleColor;
self.backgroundColor = styleColor;
self.emailButton.backgroundColor = styleColor;
self.telephoneImage.image = [self.telephoneImage.image imageWithColor:themeColor];
self.mailImage.image = [self.mailImage.image imageWithColor:themeColor];

if([emp.phone isEqualToString:@"Graduate"]||[emp.phone isEqualToString:@"Senior"]||[emp.phone isEqualToString:@"Junior"]||[emp.phone isEqualToString:@"2nd Year Law"]||[emp.phone isEqualToString:@"Sophomore"]||[emp.phone isEqualToString:@"Freshman"]||[emp.phone isEqualToString:@"1st Year Law"]){
self.phoneButton.alpha=0.0f;
Expand Down

0 comments on commit ac61528

Please sign in to comment.