






#import "ActualQuotesSuitableDirtyRelationsCell.h"
#import "SchemesSong.h"
#import "Masonry.h"

@implementation ActualQuotesSuitableDirtyRelationsCell

-(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.badLoopDryView = [UIImageView new];
        self.badLoopDryView.tintColor = [SchemesSong domainCatColor];
        self.badLoopDryView.layer.cornerRadius = 15;
        [self.contentView addSubview:self.badLoopDryView];
        [self.badLoopDryView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(SchemesSong.targetRemote.subDecrypted);
            make.centerY.mas_equalTo(self);
            make.width.height.mas_equalTo(SchemesSong.targetRemote.hasHostQuote);
        }];
        
        
        self.sumCauseName = [UILabel new];
        self.sumCauseName.font = [UIFont boldSystemFontOfSize:16];
        self.sumCauseName.textColor = UIColor.darkGrayColor;
        [self.contentView addSubview:self.sumCauseName];
        [self.sumCauseName mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.badLoopDryView.mas_right).offset(SchemesSong.targetRemote.subDecrypted);
            make.bottom.equalTo(self.contentView.mas_centerY);
        }];
        
        
        self.forBringWasTime = [UILabel new];
        self.forBringWasTime.font =  [UIFont systemFontOfSize:11];
        self.forBringWasTime.textColor = UIColor.grayColor;
        [self.contentView addSubview:self.forBringWasTime];
        [self.forBringWasTime mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.contentView.mas_centerY).offset(SchemesSong.targetRemote.fractionFit);
            make.left.equalTo(self.sumCauseName);
        }];
    }
    return self;
}

@end
