房间坑位、公屏、更多菜单UI调整

This commit is contained in:
chenguilong
2022-10-09 16:35:35 +08:00
parent f701261328
commit ed54e16cd4
21 changed files with 48 additions and 27 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -10,6 +10,7 @@
#import <Masonry/Masonry.h>
#import "XPMacro.h"
#import "ThemeColor.h"
#import "UIImage+Utils.h"
///Model
#import "XPRoomActivityPlayModel.h"
#import "NetImageView.h"
@@ -115,8 +116,8 @@
[button setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
button.titleLabel.lineBreakMode = NSLineBreakByWordWrapping;//
button.titleLabel.numberOfLines = 0;
button.backgroundColor = UIColorFromRGB(0x7B2FE0);
button.titleLabel.textAlignment = NSTextAlignmentCenter;
[button setBackgroundImage:[UIImage gradientColorImageFromColors:@[UIColorFromRGB(0x6E36FF), UIColorFromRGB(0x31EBF7)] gradientType:GradientTypeLeftToRight imgSize:CGSizeMake(18, 53)] forState:UIControlStateNormal];
_moreButton = button;
}
return _moreButton;

View File

@@ -246,7 +246,7 @@
[self.topicStackView mas_makeConstraints:^(MASConstraintMaker *make) {
make.centerX.mas_equalTo(self);
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;
CGFloat offsetY = kNavigationHeight;
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) {
offsetY += (120 + 5 + 6 + 20 +60 + 3);
} else {
offsetY += (58 + 5 + 10 + 12 + 3 + 40);
offsetY += (50 + 5 + 10 + 12 + 3 + 40);
}
[self.topicStackView mas_updateConstraints:^(MASConstraintMaker *make) {
@@ -1487,7 +1487,7 @@
[self.hourRankEntranceView mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.mas_equalTo(15);
make.centerY.mas_equalTo(self.contributeEnterView);
make.width.mas_equalTo(69);
make.width.mas_equalTo(61);
make.height.mas_equalTo(22);
}];
}

View File

@@ -41,6 +41,8 @@ UIKIT_EXTERN NSString * const kRoomGiftEffectUpdateNotificationKey;
@interface XPRoomMoreMenuViewController ()<UICollectionViewDelegate, UICollectionViewDataSource,XPMoreMenuProtocol>
///View
@property (nonatomic,strong) UIView * topView;
///
@property (nonatomic, strong) UIVisualEffectView *effectView;
///
@property (nonatomic,strong) UICollectionView *collectionView;
///View
@@ -88,6 +90,7 @@ UIKIT_EXTERN NSString * const kRoomGiftEffectUpdateNotificationKey;
self.modalPresentationStyle = UIModalPresentationOverFullScreen;
self.view.backgroundColor = [UIColor clearColor];
[self.view addSubview:self.topView];
[self.view addSubview:self.effectView];
[self.view addSubview:self.collectionView];
[self.view addSubview:self.bottomView];
}
@@ -98,6 +101,11 @@ UIKIT_EXTERN NSString * const kRoomGiftEffectUpdateNotificationKey;
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) {
make.left.right.mas_equalTo(self.view);
make.height.mas_equalTo(0);
@@ -451,7 +459,7 @@ UIKIT_EXTERN NSString * const kRoomGiftEffectUpdateNotificationKey;
_collectionView = [[UICollectionView alloc] initWithFrame:CGRectZero collectionViewLayout:layout];
_collectionView.dataSource = self;
_collectionView.delegate = self;
_collectionView.backgroundColor = UIColorRGBAlpha(0x0D0C11, 0.95);
_collectionView.backgroundColor = [UIColor clearColor];
_collectionView.alpha = 0.9;
_collectionView.scrollEnabled = NO;
[_collectionView registerClass:[XPRoomMoreMenuCollectionViewCell class] forCellWithReuseIdentifier:NSStringFromClass([XPRoomMoreMenuCollectionViewCell class])];
@@ -472,10 +480,23 @@ UIKIT_EXTERN NSString * const kRoomGiftEffectUpdateNotificationKey;
- (UIView *)bottomView {
if (!_bottomView) {
_bottomView = [[UIView alloc] init];
_bottomView.backgroundColor = [UIColor blackColor];
_bottomView.alpha = 0.9;
}
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

View File

@@ -58,7 +58,7 @@
- (UIView *)bgView {
if (!_bgView) {
_bgView = [[UIView alloc] init];
_bgView.backgroundColor = UIColorRGBAlpha(0xffffff, 0.4);
_bgView.backgroundColor = UIColorRGBAlpha(0xffffff, 0.3);
_bgView.layer.cornerRadius = 11;
_bgView.layer.masksToBounds = YES;
}

View File

@@ -26,11 +26,11 @@
//
#define ownerTopMargin 35
// 58 + 5
#define ownerWidth (58 + 5) * kScreenScale
#define ownerWidth (45 + 5) * kScreenScale
// 12 10
#define ownerHeight (ownerWidth + 10 + 12)
// 8 50 + 5
#define mcWidth (50 + 5) * kScreenScale
#define mcWidth (45 + 5) * kScreenScale
#define mcHeight (mcWidth + 10 + 12 + 5+16)
// padding 12
#define paddingH 12 * kScreenScale

View File

@@ -570,7 +570,7 @@
_postionLabel = [[UILabel alloc] init];
_postionLabel.font = [UIFont systemFontOfSize:10];
_postionLabel.textAlignment = NSTextAlignmentCenter;
_postionLabel.textColor = [UIColor colorWithWhite:1 alpha:0.6];
_postionLabel.textColor = [UIColor colorWithWhite:1 alpha:1];
_postionLabel.layer.masksToBounds = YES;
_postionLabel.layer.cornerRadius = 7;
[_postionLabel setBackgroundColor:[ThemeColor positionNormalNickBackColor]];
@@ -595,7 +595,7 @@
_leaveLabel .textColor = UIColor.whiteColor;
_leaveLabel.textAlignment = NSTextAlignmentCenter;
_leaveLabel.backgroundColor = [UIColor colorWithWhite:0 alpha:0.45];
_leaveLabel.layer.cornerRadius = 65 / 2;
_leaveLabel.layer.cornerRadius = 50 * kScreenScale / 2;
_leaveLabel.layer.masksToBounds = YES;
_leaveLabel.userInteractionEnabled = YES;
}

View File

@@ -14,14 +14,14 @@
//
#define ownerTopMargin 35
// 58 + 5
#define ownerWidth (58 + 5)
#define ownerWidth (45 + 5) * kScreenScale
// 12 10
#define ownerHeight (ownerWidth + 10 + 12)
// 8 55 + 5
#define mcWidth (55 + 5)
#define mcWidth (45 + 5) * kScreenScale
#define mcHeight (mcWidth + 10 + 12 + 5+16)
// padding 20
#define paddingH 20
#define paddingH 22 * kScreenScale
// 33
#define marginV1 38
// 8

View File

@@ -9,13 +9,14 @@
///tool
#import "ThemeColor.h"
#import "XPMacro.h"
#import "UIImage+Utils.h"
///Third
#import <Masonry/Masonry.h>
@interface XPTaskCompleteTipView()
///
@property (nonatomic, strong) UIView *mainView;
@property (nonatomic, strong) UIImageView *mainView;
///
@property (nonatomic, strong) UILabel *nickLabel;
///
@@ -68,14 +69,12 @@
}
#pragma mark - getter
- (UIView *)mainView {
- (UIImageView *)mainView {
if (!_mainView) {
_mainView = [[UIView alloc] init];
_mainView = [[UIImageView alloc] init];
_mainView.layer.cornerRadius = 10;
_mainView.layer.masksToBounds = YES;
_mainView.layer.borderWidth = 0.5;
_mainView.layer.borderColor = UIColorFromRGB(0xFFBC51).CGColor;
_mainView.backgroundColor = UIColorFromRGB(0x7A4B00);
_mainView.image = [UIImage gradientColorImageFromColors:@[UIColorFromRGB(0x5FCCE4), UIColorFromRGB(0xE15AFF)] gradientType:GradientTypeLeftToRight imgSize:CGSizeMake(150, 20)];
}
return _mainView;
}
@@ -84,7 +83,7 @@
if (!_nickLabel) {
UILabel *label = [[UILabel alloc] init];
label.font = [UIFont systemFontOfSize:12];
label.textColor = [UIColor whiteColor];
label.textColor = UIColorRGBAlpha(0x000000, 0.5);
[label sizeToFit];
label.text = @"任务已完成";
_nickLabel = label;
@@ -96,7 +95,7 @@
if (!_gotoLabel) {
UILabel *label = [[UILabel alloc] init];
label.font = [UIFont systemFontOfSize:12];
label.textColor = UIColorFromRGB(0xFFBC51);
label.textColor = [UIColor whiteColor];
[label sizeToFit];
label.text = @"查看奖励";
_gotoLabel = label;

View File

@@ -37,7 +37,7 @@
///
+ (UIColor *)positionNormalNickBackColor {
return [UIColor colorWithWhite:1 alpha:0.4];
return [UIColor colorWithWhite:1 alpha:0.2];
}
///
@@ -53,7 +53,7 @@
///
+ (UIColor *)messageBubbleColor {
return UIColorRGBAlpha(0xD8D8D8, 0.2);
return UIColorRGBAlpha(0xFFFFFF, 0.15);
}
///
+ (UIColor *)messageTextColor {