换肤
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
// Initialization code
|
||||
self.bgView.layer.borderColor = RGB16(0x333333).CGColor;
|
||||
self.bgView.layer.borderColor = QXConfig.themeColor.CGColor;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
// Initialization code
|
||||
self.roomDetailBtn.backgroundColor = QXConfig.themeColor;
|
||||
[self.roomDetailBtn setTitleColor:QXConfig.btnTextColor forState:(UIControlStateNormal)];
|
||||
self.moneyLabel.textColor = QXConfig.themeColor;
|
||||
}
|
||||
-(void)setType:(NSInteger)type{
|
||||
_type = type;
|
||||
|
||||
@@ -248,7 +248,7 @@
|
||||
</collectionViewCell>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="my_cproom_head_bg" width="65" height="65"/>
|
||||
<image name="my_cproom_head_bg" width="68" height="68"/>
|
||||
<image name="my_cproom_rank" width="14" height="14"/>
|
||||
<image name="my_cproom_value" width="14" height="14"/>
|
||||
<image name="my_room_cp" width="46" height="20"/>
|
||||
|
||||
@@ -20,8 +20,9 @@
|
||||
self.roomDetailBtn.backgroundColor = QXConfig.themeColor;
|
||||
[self.roomDetailBtn setTitleColor:QXConfig.btnTextColor forState:(UIControlStateNormal)];
|
||||
|
||||
[self.roomSubsidyBtn setTitleColor:UIColor.whiteColor forState:(UIControlStateNormal)];
|
||||
self.roomSubsidyBtn.backgroundColor = RGB16(0x333333);
|
||||
[self.roomSubsidyBtn setTitleColor:RGB16(0xC58600) forState:(UIControlStateNormal)];
|
||||
self.roomSubsidyBtn.backgroundColor = RGB16A(0xDEB52E, 0.25);
|
||||
self.moneyLabel.textColor = QXConfig.themeColor;
|
||||
}
|
||||
-(void)setBgImageCount:(NSInteger)bgImageCount{
|
||||
_bgImageCount = bgImageCount;
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
self.titleLabel.text = model.task_name;
|
||||
NSString*subTitle = [NSString stringWithFormat:@"金币+%@",model.gold_reward];
|
||||
NSMutableAttributedString *attr = [[NSMutableAttributedString alloc] initWithString:subTitle];
|
||||
[attr yy_setColor:RGB16(0xE24171) range:[subTitle rangeOfString:[NSString stringWithFormat:@"+%@",model.gold_reward]]];
|
||||
[attr yy_setColor:RGB16(0xFF8827) range:[subTitle rangeOfString:[NSString stringWithFormat:@"+%@",model.gold_reward]]];
|
||||
self.subTitleLabel.attributedText = attr;
|
||||
[self.iconImageView sd_setImageWithURL:[NSURL URLWithString:model.icon]];
|
||||
if (model.task_status.intValue == 1) {
|
||||
@@ -60,7 +60,8 @@
|
||||
[super awakeFromNib];
|
||||
// Initialization code
|
||||
[self.finishBtn addRoundedCornersWithRadius:15];
|
||||
self.finishBtn.layer.borderColor = RGB16(0xE24171).CGColor;
|
||||
[self.finishBtn setTitleColor:RGB16(0xC134EE) forState:(UIControlStateNormal)];
|
||||
self.finishBtn.layer.borderColor = RGB16(0xC134EE).CGColor;
|
||||
self.finishBtn.layer.borderWidth = 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
}
|
||||
-(void)initSubviews{
|
||||
self.cycleScrollView = [SDCycleScrollView cycleScrollViewWithFrame:CGRectMake(0, 0, self.width, 169+kSafeAreaTop+16) delegate:self placeholderImage:nil];
|
||||
self.cycleScrollView.backgroundColor = QXConfig.themeColor;
|
||||
self.cycleScrollView.backgroundColor = [UIColor clearColor];
|
||||
self.cycleScrollView.imageURLStringsGroup = @[[QXGlobal shareGlobal].loginModel.avatar?[QXGlobal shareGlobal].loginModel.avatar:@""];
|
||||
self.cycleScrollView.bannerImageViewContentMode = UIViewContentModeScaleAspectFill;
|
||||
[self addSubview:self.cycleScrollView];
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
self.titleLabel = [[UILabel alloc] init];
|
||||
self.titleLabel.text = QXText(@"金币余额");
|
||||
self.titleLabel.font = [UIFont boldSystemFontOfSize:16];
|
||||
self.titleLabel.textColor = QXConfig.textColor;
|
||||
self.titleLabel.textColor = RGB16(0xffffff);
|
||||
[self addSubview:self.titleLabel];
|
||||
[self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.equalTo(self).offset(16);
|
||||
@@ -65,15 +65,18 @@
|
||||
switch (type) {
|
||||
case QXWalletTopViewTypeRecharge:{
|
||||
self.cornImageView.image = [UIImage imageNamed:@"wallet_corn"];
|
||||
self.topBgImageView.image = [UIImage imageNamed:@"wallet_top_bg"];
|
||||
self.titleLabel.text = QXText(@"金币余额");
|
||||
}
|
||||
break;
|
||||
case QXWalletTopViewTypeWithDraw:{
|
||||
self.topBgImageView.image = [UIImage imageNamed:@"wallet_top_bg1"];
|
||||
self.cornImageView.image = [UIImage imageNamed:@"wallet_diamond"];
|
||||
self.titleLabel.text = QXText(@"我的钻石");
|
||||
}
|
||||
break;
|
||||
case QXWalletTopViewTypeDiamond:{
|
||||
self.topBgImageView.image = [UIImage imageNamed:@"wallet_top_bg1"];
|
||||
self.cornImageView.image = [UIImage imageNamed:@"wallet_diamond"];
|
||||
self.titleLabel.text = QXText(@"钻石余额");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user