change selected color hardcoded

This commit is contained in:
Ran Greenberg 2016-07-01 09:54:17 +03:00
parent 13391b9e18
commit 8246d99d98

View File

@ -10,6 +10,13 @@
#define BADGE_SIZE 22
#define BADGE_MARGIN 5
#define BADGE_COLOR 0x00ADF5
#define UIColorFromRGB(rgbValue) \
[UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
green:((float)((rgbValue & 0x00FF00) >> 8))/255.0 \
blue:((float)((rgbValue & 0x0000FF) >> 0))/255.0 \
alpha:1.0]
@interface CKGalleryCollectionViewCell ()
@ -64,7 +71,7 @@
_isSelected = isSelected;
if (_isSelected) {
self.badgeLabel.backgroundColor = [UIColor blueColor];
self.badgeLabel.backgroundColor = UIColorFromRGB(BADGE_COLOR);
}
else {
self.badgeLabel.backgroundColor = [[UIColor grayColor] colorWithAlphaComponent:0.7];