






#import "CousinHexRawTempCauseCell.h"
#import "VitalityTab.h"
#import "Masonry.h"

@implementation CousinHexRawTempCauseCell

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if(self){
        
        self.backgroundColor = UIColor.whiteColor;
        self.contentView.backgroundColor = UIColor.whiteColor;
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        
        
        self.canonSugarView = [UIImageView new];
        self.canonSugarView.tintColor = [VitalityTab didCancelColor];
        self.canonSugarView.layer.cornerRadius = 15;
        [self.contentView addSubview:self.canonSugarView];
        [self.canonSugarView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(VitalityTab.noneMidMicro.lighterSmall);
            make.centerY.mas_equalTo(self);
            make.width.height.mas_equalTo(VitalityTab.noneMidMicro.visualWaySaw);
        }];
        
        
        self.onlyZoomName = [UILabel new];
        self.onlyZoomName.font = [UIFont boldSystemFontOfSize:16];
        self.onlyZoomName.textColor = UIColor.darkGrayColor;
        [self.contentView addSubview:self.onlyZoomName];
        [self.onlyZoomName mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.canonSugarView.mas_right).offset(VitalityTab.noneMidMicro.lighterSmall);
            make.bottom.equalTo(self.contentView.mas_centerY);
        }];
        
        
        self.chargingDidTime = [UILabel new];
        self.chargingDidTime.font =  [UIFont systemFontOfSize:11];
        self.chargingDidTime.textColor = UIColor.grayColor;
        [self.contentView addSubview:self.chargingDidTime];
        [self.chargingDidTime mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.contentView.mas_centerY).offset(VitalityTab.noneMidMicro.mixTooUnder);
            make.left.equalTo(self.onlyZoomName);
        }];
    }
    return self;
}

@end
