1.0.19 feat:个性化房间背景-free 部分 / 首页支持 API 更新 UI

This commit is contained in:
eggmanQQQ
2024-11-05 17:09:22 +08:00
parent faacf7b22d
commit b3fee0eef9
39 changed files with 978 additions and 286 deletions

View File

@@ -111,7 +111,7 @@ UIKIT_EXTERN NSString *kRequestTicket;
- (void)viewDidLoad {
[super viewDidLoad];
self.view.backgroundColor = [DJDKMIMOMColor colorWithHexString:@"#FCF4DF"];
self.view.backgroundColor = [[ClientConfig shareConfig] bgColor];
[self setupTopTheme];
[self initSubViews];
[self initSubViewConstraints];
@@ -119,10 +119,19 @@ UIKIT_EXTERN NSString *kRequestTicket;
}
- (void)setupTopTheme {
UIImageView *theme = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, KScreenWidth, kGetScaleWidth(140))];
theme.image = [UIImage imageNamed:@"home_top_bg"];
__block UIImageView *theme = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, KScreenWidth, kGetScaleWidth(140))];
theme.image = [[ClientConfig shareConfig] navigationAreaBG];// [UIImage imageNamed:@"home_top_bg"];
theme.contentMode = UIViewContentModeScaleAspectFit;
[self.view addSubview:theme];
[[NSNotificationCenter defaultCenter] addObserverForName:[ClientConfig shareConfig].reloadNavigationAreaImageKey
object:nil
queue:[NSOperationQueue mainQueue]
usingBlock:^(NSNotification * _Nonnull notification) {
if ([notification.object isKindOfClass:[UIImage class]]) {
theme.image = (UIImage *)notification.object;
}
}];
}
- (void)viewWillAppear:(BOOL)animated {