房间相册UI优化

This commit is contained in:
liyuhua
2023-10-19 11:44:58 +08:00
parent 35ed817644
commit 1919e74c06
2 changed files with 4 additions and 3 deletions

View File

@@ -157,7 +157,7 @@
config.placeHolder = [UIImageConstant defaultAvatarPlaceholder];
_bgImageView = [[NetImageView alloc]initWithConfig:config];
_bgImageView.userInteractionEnabled = YES;
[_bgImageView setCornerWithLeftTopCorner:kGetScaleWidth(8) rightTopCorner:kGetScaleWidth(8) bottomLeftCorner:kGetScaleWidth(8) bottomRightCorner:kGetScaleWidth(8) size:CGSizeMake(kGetScaleWidth(168), kGetScaleWidth(170))];
[_bgImageView setCornerWithLeftTopCorner:kGetScaleWidth(10) rightTopCorner:kGetScaleWidth(10) bottomLeftCorner:kGetScaleWidth(10) bottomRightCorner:kGetScaleWidth(10) size:CGSizeMake(kGetScaleWidth(168), kGetScaleWidth(170))];
_bgImageView.contentMode = UIViewContentModeScaleAspectFill;
}
return _bgImageView;

View File

@@ -84,6 +84,7 @@
_photoType = photoType;
_tipsView.text = _photoType == Photo_Type_Normal ? YMLocalizedString(@"PIRoomPhotoAlbumChoosePhotoGiftView1"):YMLocalizedString(@"PIRoomPhotoAlbumChoosePhotoGiftView2");
_titleView.textColor =_photoType == Photo_Type_Normal ? UIColorFromRGB(0xB3B3C3) : UIColorFromRGB(0x1F1B4F);
_titleView.font =_photoType == Photo_Type_Normal ? kFontRegular(14) : kFontMedium(14);
}
- (void)setChooseGiftType:(PIRoomPhotoAlbumChoosePhotoGiftViewType)chooseGiftType{
_chooseGiftType = chooseGiftType;
@@ -128,8 +129,8 @@
_giftView.backgroundColor = UIColorFromRGB(0x001338);
_giftView.layer.cornerRadius = kGetScaleWidth(4);
_giftView.layer.masksToBounds = YES;
_giftView.layer.borderWidth = 0.5;
_giftView.layer.borderColor = UIColorFromRGB(0xD6D6D6).CGColor;
_giftView.layer.borderWidth = 1;
_giftView.layer.borderColor = [UIColor whiteColor].CGColor;
}
return _giftView;
}