colors fixes

This commit is contained in:
Grigory Ulanov 2016-12-07 15:28:04 +03:00
parent f2049567ae
commit 30b15aab94
1 changed files with 3 additions and 0 deletions

View File

@ -217,10 +217,13 @@ static CGFloat const kTodayLabelHeight = 12.f;
if (buttonState == UIControlStateHighlighted) {
self.backgroundImageView.image = self.dayViewAppearance.highlightedBackgroundImage;
[self.dayButton setTitleColor:self.dayViewAppearance.hightlightedTitleColor forState:UIControlStateNormal];
} else if (buttonState == UIControlStateSelected) {
self.backgroundImageView.image = self.dayViewAppearance.selectedBackgroundImage;
[self.dayButton setTitleColor:self.dayViewAppearance.hightlightedTitleColor forState:UIControlStateNormal];
} else {
self.backgroundImageView.image = nil;
[self.dayButton setTitleColor:self.dayViewAppearance.titleColor forState:UIControlStateNormal];
}
}