// // TUIPatch.m // Youth // // Created by mambaxie on 2022/1/2. // #import "TUIPatch.h" @implementation TUIPatch + (void)patchChatVC:(TUIBaseChatViewController *)vc { dispatch_async(dispatch_get_main_queue(), ^{ UIColor *bgColor = BG_COLOR; vc.messageController.view.backgroundColor = bgColor; vc.messageController.tableView.backgroundColor = [UIColor clearColor]; vc.inputController.view.backgroundColor = bgColor; vc.inputController.inputBar.backgroundColor = bgColor; vc.inputController.inputBar.lineView.backgroundColor = LINE_COLOR; TUIResponderTextView *inputTextView = vc.inputController.inputBar.inputTextView; inputTextView.backgroundColor = SUB_BG_COLOR; inputTextView.textColor = TITLE_COLOR; inputTextView.layer.borderWidth = 0.5; inputTextView.layer.borderColor = COLOR_WITH_RGB(0x2A2740).CGColor; vc.inputController.moreView.moreCollectionView.backgroundColor = bgColor; vc.inputController.moreView.backgroundColor = bgColor; vc.inputController.moreView.superview.backgroundColor = bgColor; [vc.inputController.faceView clearBackgroudColorForClassNames:@[ @"UICollectionView" ]]; UIActivityIndicatorView *indicationView = (UIActivityIndicatorView *)vc.messageController.tableView.tableHeaderView; indicationView.color = UIColor.whiteColor; vc.inputController.faceView.backgroundColor = [UIColor clearColor]; vc.inputController.menuView.backgroundColor = [UIColor clearColor]; vc.inputController.menuView.sendButton.backgroundColor = COLOR_WITH_RGB(0xFFBE00); [vc.inputController.menuView.sendButton setTitleColor:COLOR_WITH_RGB(0x040000) forState:UIControlStateNormal]; vc.inputController.menuView.menuCollectionView.hidden = YES; }); TUIInputMoreCellData *photoData = [TUIInputMoreCellData photoData]; // photoData.title = @"相册"; TUIInputMoreCellData *pictureData = [TUIInputMoreCellData pictureData]; TUIInputMoreCellData *VipData = [TUIInputMoreCellData customData]; // VipData.title = @"VIP"; TUIInputMoreCellData *LoactionData = [TUIInputMoreCellData locationmData]; // LoactionData.title = @"位置"; vc.moreMenus = @[photoData, pictureData,VipData,LoactionData]; } @end