Composer update - UI enhancements

- composer max height
- unread messages on scroll to bottom button
- changed input toolbar background
- new missed discussions notifications
- Edit a message mode
- Reply to a message mode
- support for landscape mode
This commit is contained in:
Gil Eluard
2021-03-24 22:17:09 +01:00
parent f9e87b6a13
commit 6f94f9ea32
22 changed files with 346 additions and 31 deletions
@@ -47,6 +47,8 @@
[tap setDelegate:self];
[self.titleMask addGestureRecognizer:tap];
self.titleMask.userInteractionEnabled = YES;
self.dotView.layer.masksToBounds = YES;
self.dotView.layer.cornerRadius = CGRectGetMidX(self.dotView.bounds);
}
}
@@ -85,6 +87,8 @@
self.backgroundColor = UIColor.clearColor;
self.displayNameTextField.textColor = (self.mxRoom.summary.displayname.length ? ThemeService.shared.theme.textPrimaryColor : ThemeService.shared.theme.textSecondaryColor);
self.typingLabel.textColor = ThemeService.shared.theme.textSecondaryColor;
self.dotView.backgroundColor = ThemeService.shared.theme.warningColor;
self.missedDiscussionsBadgeLabel.textColor = ThemeService.shared.theme.tintColor;
}
- (void)setRoomPreviewData:(RoomPreviewData *)roomPreviewData
@@ -133,6 +137,28 @@
}
}
- (void)updateLayoutForOrientation:(UIInterfaceOrientation)orientation
{
if (UIInterfaceOrientationIsLandscape(orientation))
{
self.missedDiscussionsBadgeLabel.font = [UIFont systemFontOfSize:10];
self.missedDiscussionsBadgeLabelLeadingConstraint.constant = -24;
self.pictureViewWidthConstraint.constant = 28;
self.pictureViewHeightConstraint.constant = 28;
self.displayNameTextField.font = [UIFont systemFontOfSize:14 weight:UIFontWeightMedium];
self.typingLabel.font = [UIFont systemFontOfSize:10];
}
else
{
self.missedDiscussionsBadgeLabel.font = [UIFont systemFontOfSize:15];
self.missedDiscussionsBadgeLabelLeadingConstraint.constant = -32;
self.pictureViewWidthConstraint.constant = 32;
self.pictureViewHeightConstraint.constant = 32;
self.displayNameTextField.font = [UIFont systemFontOfSize:17 weight:UIFontWeightMedium];
self.typingLabel.font = [UIFont systemFontOfSize:12];
}
}
- (void)setTypingNotificationString:(NSString *)typingNotificationString
{
if (typingNotificationString.length > 0)