房间坑位、公屏、更多菜单UI调整
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 1.8 KiB |
@@ -10,6 +10,7 @@
|
|||||||
#import <Masonry/Masonry.h>
|
#import <Masonry/Masonry.h>
|
||||||
#import "XPMacro.h"
|
#import "XPMacro.h"
|
||||||
#import "ThemeColor.h"
|
#import "ThemeColor.h"
|
||||||
|
#import "UIImage+Utils.h"
|
||||||
///Model
|
///Model
|
||||||
#import "XPRoomActivityPlayModel.h"
|
#import "XPRoomActivityPlayModel.h"
|
||||||
#import "NetImageView.h"
|
#import "NetImageView.h"
|
||||||
@@ -115,8 +116,8 @@
|
|||||||
[button setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
|
[button setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
|
||||||
button.titleLabel.lineBreakMode = NSLineBreakByWordWrapping;//换行模式自动换行
|
button.titleLabel.lineBreakMode = NSLineBreakByWordWrapping;//换行模式自动换行
|
||||||
button.titleLabel.numberOfLines = 0;
|
button.titleLabel.numberOfLines = 0;
|
||||||
button.backgroundColor = UIColorFromRGB(0x7B2FE0);
|
|
||||||
button.titleLabel.textAlignment = NSTextAlignmentCenter;
|
button.titleLabel.textAlignment = NSTextAlignmentCenter;
|
||||||
|
[button setBackgroundImage:[UIImage gradientColorImageFromColors:@[UIColorFromRGB(0x6E36FF), UIColorFromRGB(0x31EBF7)] gradientType:GradientTypeLeftToRight imgSize:CGSizeMake(18, 53)] forState:UIControlStateNormal];
|
||||||
_moreButton = button;
|
_moreButton = button;
|
||||||
}
|
}
|
||||||
return _moreButton;
|
return _moreButton;
|
||||||
|
@@ -246,7 +246,7 @@
|
|||||||
[self.topicStackView mas_makeConstraints:^(MASConstraintMaker *make) {
|
[self.topicStackView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||||
make.centerX.mas_equalTo(self);
|
make.centerX.mas_equalTo(self);
|
||||||
make.height.mas_equalTo(15);
|
make.height.mas_equalTo(15);
|
||||||
make.top.mas_equalTo(58 + 5 + 6 + 12 + 3 + kNavigationHeight);
|
make.top.mas_equalTo(50 + 5 + 6 + 12 + 3 + kNavigationHeight);
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1195,11 +1195,11 @@
|
|||||||
RoomInfoModel * roomInfo = self.delegate.getRoomInfo;
|
RoomInfoModel * roomInfo = self.delegate.getRoomInfo;
|
||||||
CGFloat offsetY = kNavigationHeight;
|
CGFloat offsetY = kNavigationHeight;
|
||||||
if (roomInfo.roomModeType == RoomModeType_Open_Blind) {
|
if (roomInfo.roomModeType == RoomModeType_Open_Blind) {
|
||||||
offsetY += ((58 + 5) * kScreenScale + 10 + 12 + 3 + 40);
|
offsetY += ((50 + 5) * kScreenScale + 10 + 12 + 3 + 40);
|
||||||
} else if (roomInfo.type == RoomType_Anchor) {
|
} else if (roomInfo.type == RoomType_Anchor) {
|
||||||
offsetY += (120 + 5 + 6 + 20 +60 + 3);
|
offsetY += (120 + 5 + 6 + 20 +60 + 3);
|
||||||
} else {
|
} else {
|
||||||
offsetY += (58 + 5 + 10 + 12 + 3 + 40);
|
offsetY += (50 + 5 + 10 + 12 + 3 + 40);
|
||||||
}
|
}
|
||||||
|
|
||||||
[self.topicStackView mas_updateConstraints:^(MASConstraintMaker *make) {
|
[self.topicStackView mas_updateConstraints:^(MASConstraintMaker *make) {
|
||||||
@@ -1487,7 +1487,7 @@
|
|||||||
[self.hourRankEntranceView mas_makeConstraints:^(MASConstraintMaker *make) {
|
[self.hourRankEntranceView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||||
make.left.mas_equalTo(15);
|
make.left.mas_equalTo(15);
|
||||||
make.centerY.mas_equalTo(self.contributeEnterView);
|
make.centerY.mas_equalTo(self.contributeEnterView);
|
||||||
make.width.mas_equalTo(69);
|
make.width.mas_equalTo(61);
|
||||||
make.height.mas_equalTo(22);
|
make.height.mas_equalTo(22);
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
@@ -41,6 +41,8 @@ UIKIT_EXTERN NSString * const kRoomGiftEffectUpdateNotificationKey;
|
|||||||
@interface XPRoomMoreMenuViewController ()<UICollectionViewDelegate, UICollectionViewDataSource,XPMoreMenuProtocol>
|
@interface XPRoomMoreMenuViewController ()<UICollectionViewDelegate, UICollectionViewDataSource,XPMoreMenuProtocol>
|
||||||
///顶部的View
|
///顶部的View
|
||||||
@property (nonatomic,strong) UIView * topView;
|
@property (nonatomic,strong) UIView * topView;
|
||||||
|
///模糊背景
|
||||||
|
@property (nonatomic, strong) UIVisualEffectView *effectView;
|
||||||
///列表
|
///列表
|
||||||
@property (nonatomic,strong) UICollectionView *collectionView;
|
@property (nonatomic,strong) UICollectionView *collectionView;
|
||||||
///底部的View
|
///底部的View
|
||||||
@@ -88,6 +90,7 @@ UIKIT_EXTERN NSString * const kRoomGiftEffectUpdateNotificationKey;
|
|||||||
self.modalPresentationStyle = UIModalPresentationOverFullScreen;
|
self.modalPresentationStyle = UIModalPresentationOverFullScreen;
|
||||||
self.view.backgroundColor = [UIColor clearColor];
|
self.view.backgroundColor = [UIColor clearColor];
|
||||||
[self.view addSubview:self.topView];
|
[self.view addSubview:self.topView];
|
||||||
|
[self.view addSubview:self.effectView];
|
||||||
[self.view addSubview:self.collectionView];
|
[self.view addSubview:self.collectionView];
|
||||||
[self.view addSubview:self.bottomView];
|
[self.view addSubview:self.bottomView];
|
||||||
}
|
}
|
||||||
@@ -98,6 +101,11 @@ UIKIT_EXTERN NSString * const kRoomGiftEffectUpdateNotificationKey;
|
|||||||
make.bottom.mas_equalTo(self.collectionView.mas_top);
|
make.bottom.mas_equalTo(self.collectionView.mas_top);
|
||||||
}];
|
}];
|
||||||
|
|
||||||
|
[self.effectView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||||
|
make.left.right.mas_equalTo(0);
|
||||||
|
make.top.mas_equalTo(self.collectionView);
|
||||||
|
make.bottom.mas_equalTo(self.bottomView);
|
||||||
|
}];
|
||||||
[self.collectionView mas_makeConstraints:^(MASConstraintMaker *make) {
|
[self.collectionView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||||
make.left.right.mas_equalTo(self.view);
|
make.left.right.mas_equalTo(self.view);
|
||||||
make.height.mas_equalTo(0);
|
make.height.mas_equalTo(0);
|
||||||
@@ -451,7 +459,7 @@ UIKIT_EXTERN NSString * const kRoomGiftEffectUpdateNotificationKey;
|
|||||||
_collectionView = [[UICollectionView alloc] initWithFrame:CGRectZero collectionViewLayout:layout];
|
_collectionView = [[UICollectionView alloc] initWithFrame:CGRectZero collectionViewLayout:layout];
|
||||||
_collectionView.dataSource = self;
|
_collectionView.dataSource = self;
|
||||||
_collectionView.delegate = self;
|
_collectionView.delegate = self;
|
||||||
_collectionView.backgroundColor = UIColorRGBAlpha(0x0D0C11, 0.95);
|
_collectionView.backgroundColor = [UIColor clearColor];
|
||||||
_collectionView.alpha = 0.9;
|
_collectionView.alpha = 0.9;
|
||||||
_collectionView.scrollEnabled = NO;
|
_collectionView.scrollEnabled = NO;
|
||||||
[_collectionView registerClass:[XPRoomMoreMenuCollectionViewCell class] forCellWithReuseIdentifier:NSStringFromClass([XPRoomMoreMenuCollectionViewCell class])];
|
[_collectionView registerClass:[XPRoomMoreMenuCollectionViewCell class] forCellWithReuseIdentifier:NSStringFromClass([XPRoomMoreMenuCollectionViewCell class])];
|
||||||
@@ -472,10 +480,23 @@ UIKIT_EXTERN NSString * const kRoomGiftEffectUpdateNotificationKey;
|
|||||||
- (UIView *)bottomView {
|
- (UIView *)bottomView {
|
||||||
if (!_bottomView) {
|
if (!_bottomView) {
|
||||||
_bottomView = [[UIView alloc] init];
|
_bottomView = [[UIView alloc] init];
|
||||||
_bottomView.backgroundColor = [UIColor blackColor];
|
|
||||||
_bottomView.alpha = 0.9;
|
|
||||||
}
|
}
|
||||||
return _bottomView;
|
return _bottomView;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (UIVisualEffectView *)effectView {
|
||||||
|
if (!_effectView) {
|
||||||
|
UIBlurEffect *beffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight];
|
||||||
|
_effectView = [[UIVisualEffectView alloc] initWithEffect:beffect];
|
||||||
|
_effectView.backgroundColor = UIColorRGBAlpha(0x000000, 0.1);
|
||||||
|
|
||||||
|
UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(0, 0, KScreenWidth, KScreenHeight) byRoundingCorners:UIRectCornerTopLeft | UIRectCornerTopRight cornerRadii:CGSizeMake(8, 8)];
|
||||||
|
CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init];
|
||||||
|
maskLayer.frame = CGRectMake(0, 0, KScreenWidth, KScreenHeight);
|
||||||
|
maskLayer.path = maskPath.CGPath;
|
||||||
|
_effectView.layer.mask = maskLayer;
|
||||||
|
}
|
||||||
|
return _effectView;
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
@@ -58,7 +58,7 @@
|
|||||||
- (UIView *)bgView {
|
- (UIView *)bgView {
|
||||||
if (!_bgView) {
|
if (!_bgView) {
|
||||||
_bgView = [[UIView alloc] init];
|
_bgView = [[UIView alloc] init];
|
||||||
_bgView.backgroundColor = UIColorRGBAlpha(0xffffff, 0.4);
|
_bgView.backgroundColor = UIColorRGBAlpha(0xffffff, 0.3);
|
||||||
_bgView.layer.cornerRadius = 11;
|
_bgView.layer.cornerRadius = 11;
|
||||||
_bgView.layer.masksToBounds = YES;
|
_bgView.layer.masksToBounds = YES;
|
||||||
}
|
}
|
||||||
|
@@ -26,11 +26,11 @@
|
|||||||
//房主距离顶部间距
|
//房主距离顶部间距
|
||||||
#define ownerTopMargin 35
|
#define ownerTopMargin 35
|
||||||
// 房主头像宽 58 + 光圈 5
|
// 房主头像宽 58 + 光圈 5
|
||||||
#define ownerWidth (58 + 5) * kScreenScale
|
#define ownerWidth (45 + 5) * kScreenScale
|
||||||
// 昵称高 12,距离头像间距 10
|
// 昵称高 12,距离头像间距 10
|
||||||
#define ownerHeight (ownerWidth + 10 + 12)
|
#define ownerHeight (ownerWidth + 10 + 12)
|
||||||
// 下面 8 个坑位宽50 + 光圈 5
|
// 下面 8 个坑位宽50 + 光圈 5
|
||||||
#define mcWidth (50 + 5) * kScreenScale
|
#define mcWidth (45 + 5) * kScreenScale
|
||||||
#define mcHeight (mcWidth + 10 + 12 + 5+16)
|
#define mcHeight (mcWidth + 10 + 12 + 5+16)
|
||||||
// 左右 padding 12
|
// 左右 padding 12
|
||||||
#define paddingH 12 * kScreenScale
|
#define paddingH 12 * kScreenScale
|
||||||
|
@@ -570,7 +570,7 @@
|
|||||||
_postionLabel = [[UILabel alloc] init];
|
_postionLabel = [[UILabel alloc] init];
|
||||||
_postionLabel.font = [UIFont systemFontOfSize:10];
|
_postionLabel.font = [UIFont systemFontOfSize:10];
|
||||||
_postionLabel.textAlignment = NSTextAlignmentCenter;
|
_postionLabel.textAlignment = NSTextAlignmentCenter;
|
||||||
_postionLabel.textColor = [UIColor colorWithWhite:1 alpha:0.6];
|
_postionLabel.textColor = [UIColor colorWithWhite:1 alpha:1];
|
||||||
_postionLabel.layer.masksToBounds = YES;
|
_postionLabel.layer.masksToBounds = YES;
|
||||||
_postionLabel.layer.cornerRadius = 7;
|
_postionLabel.layer.cornerRadius = 7;
|
||||||
[_postionLabel setBackgroundColor:[ThemeColor positionNormalNickBackColor]];
|
[_postionLabel setBackgroundColor:[ThemeColor positionNormalNickBackColor]];
|
||||||
@@ -595,7 +595,7 @@
|
|||||||
_leaveLabel .textColor = UIColor.whiteColor;
|
_leaveLabel .textColor = UIColor.whiteColor;
|
||||||
_leaveLabel.textAlignment = NSTextAlignmentCenter;
|
_leaveLabel.textAlignment = NSTextAlignmentCenter;
|
||||||
_leaveLabel.backgroundColor = [UIColor colorWithWhite:0 alpha:0.45];
|
_leaveLabel.backgroundColor = [UIColor colorWithWhite:0 alpha:0.45];
|
||||||
_leaveLabel.layer.cornerRadius = 65 / 2;
|
_leaveLabel.layer.cornerRadius = 50 * kScreenScale / 2;
|
||||||
_leaveLabel.layer.masksToBounds = YES;
|
_leaveLabel.layer.masksToBounds = YES;
|
||||||
_leaveLabel.userInteractionEnabled = YES;
|
_leaveLabel.userInteractionEnabled = YES;
|
||||||
}
|
}
|
||||||
|
@@ -14,14 +14,14 @@
|
|||||||
//房主距离顶部间距
|
//房主距离顶部间距
|
||||||
#define ownerTopMargin 35
|
#define ownerTopMargin 35
|
||||||
// 房主头像宽 58 + 光圈 5
|
// 房主头像宽 58 + 光圈 5
|
||||||
#define ownerWidth (58 + 5)
|
#define ownerWidth (45 + 5) * kScreenScale
|
||||||
// 昵称高12,距离头像间距 10
|
// 昵称高12,距离头像间距 10
|
||||||
#define ownerHeight (ownerWidth + 10 + 12)
|
#define ownerHeight (ownerWidth + 10 + 12)
|
||||||
// 下面 8 个坑位宽55 + 光圈 5
|
// 下面 8 个坑位宽55 + 光圈 5
|
||||||
#define mcWidth (55 + 5)
|
#define mcWidth (45 + 5) * kScreenScale
|
||||||
#define mcHeight (mcWidth + 10 + 12 + 5+16)
|
#define mcHeight (mcWidth + 10 + 12 + 5+16)
|
||||||
// 左右 padding 20
|
// 左右 padding 20
|
||||||
#define paddingH 20
|
#define paddingH 22 * kScreenScale
|
||||||
// 房主与下面的坑位间隔 33
|
// 房主与下面的坑位间隔 33
|
||||||
#define marginV1 38
|
#define marginV1 38
|
||||||
// 下面 8 个坑位两两之间的间距
|
// 下面 8 个坑位两两之间的间距
|
||||||
|
@@ -9,13 +9,14 @@
|
|||||||
///tool
|
///tool
|
||||||
#import "ThemeColor.h"
|
#import "ThemeColor.h"
|
||||||
#import "XPMacro.h"
|
#import "XPMacro.h"
|
||||||
|
#import "UIImage+Utils.h"
|
||||||
///Third
|
///Third
|
||||||
#import <Masonry/Masonry.h>
|
#import <Masonry/Masonry.h>
|
||||||
|
|
||||||
@interface XPTaskCompleteTipView()
|
@interface XPTaskCompleteTipView()
|
||||||
|
|
||||||
///背景
|
///背景
|
||||||
@property (nonatomic, strong) UIView *mainView;
|
@property (nonatomic, strong) UIImageView *mainView;
|
||||||
///昵称
|
///昵称
|
||||||
@property (nonatomic, strong) UILabel *nickLabel;
|
@property (nonatomic, strong) UILabel *nickLabel;
|
||||||
///昵称
|
///昵称
|
||||||
@@ -68,14 +69,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#pragma mark - getter
|
#pragma mark - getter
|
||||||
- (UIView *)mainView {
|
- (UIImageView *)mainView {
|
||||||
if (!_mainView) {
|
if (!_mainView) {
|
||||||
_mainView = [[UIView alloc] init];
|
_mainView = [[UIImageView alloc] init];
|
||||||
_mainView.layer.cornerRadius = 10;
|
_mainView.layer.cornerRadius = 10;
|
||||||
_mainView.layer.masksToBounds = YES;
|
_mainView.layer.masksToBounds = YES;
|
||||||
_mainView.layer.borderWidth = 0.5;
|
_mainView.image = [UIImage gradientColorImageFromColors:@[UIColorFromRGB(0x5FCCE4), UIColorFromRGB(0xE15AFF)] gradientType:GradientTypeLeftToRight imgSize:CGSizeMake(150, 20)];
|
||||||
_mainView.layer.borderColor = UIColorFromRGB(0xFFBC51).CGColor;
|
|
||||||
_mainView.backgroundColor = UIColorFromRGB(0x7A4B00);
|
|
||||||
}
|
}
|
||||||
return _mainView;
|
return _mainView;
|
||||||
}
|
}
|
||||||
@@ -84,7 +83,7 @@
|
|||||||
if (!_nickLabel) {
|
if (!_nickLabel) {
|
||||||
UILabel *label = [[UILabel alloc] init];
|
UILabel *label = [[UILabel alloc] init];
|
||||||
label.font = [UIFont systemFontOfSize:12];
|
label.font = [UIFont systemFontOfSize:12];
|
||||||
label.textColor = [UIColor whiteColor];
|
label.textColor = UIColorRGBAlpha(0x000000, 0.5);
|
||||||
[label sizeToFit];
|
[label sizeToFit];
|
||||||
label.text = @"任务已完成";
|
label.text = @"任务已完成";
|
||||||
_nickLabel = label;
|
_nickLabel = label;
|
||||||
@@ -96,7 +95,7 @@
|
|||||||
if (!_gotoLabel) {
|
if (!_gotoLabel) {
|
||||||
UILabel *label = [[UILabel alloc] init];
|
UILabel *label = [[UILabel alloc] init];
|
||||||
label.font = [UIFont systemFontOfSize:12];
|
label.font = [UIFont systemFontOfSize:12];
|
||||||
label.textColor = UIColorFromRGB(0xFFBC51);
|
label.textColor = [UIColor whiteColor];
|
||||||
[label sizeToFit];
|
[label sizeToFit];
|
||||||
label.text = @"查看奖励";
|
label.text = @"查看奖励";
|
||||||
_gotoLabel = label;
|
_gotoLabel = label;
|
||||||
|
@@ -37,7 +37,7 @@
|
|||||||
|
|
||||||
/// 没有用户的 坑位的背景色
|
/// 没有用户的 坑位的背景色
|
||||||
+ (UIColor *)positionNormalNickBackColor {
|
+ (UIColor *)positionNormalNickBackColor {
|
||||||
return [UIColor colorWithWhite:1 alpha:0.4];
|
return [UIColor colorWithWhite:1 alpha:0.2];
|
||||||
}
|
}
|
||||||
|
|
||||||
///老板位 坑位开始背景色
|
///老板位 坑位开始背景色
|
||||||
@@ -53,7 +53,7 @@
|
|||||||
|
|
||||||
///公屏默认背景的颜色
|
///公屏默认背景的颜色
|
||||||
+ (UIColor *)messageBubbleColor {
|
+ (UIColor *)messageBubbleColor {
|
||||||
return UIColorRGBAlpha(0xD8D8D8, 0.2);
|
return UIColorRGBAlpha(0xFFFFFF, 0.15);
|
||||||
}
|
}
|
||||||
///公屏文字的颜色
|
///公屏文字的颜色
|
||||||
+ (UIColor *)messageTextColor {
|
+ (UIColor *)messageTextColor {
|
||||||
|