Room input toolbars: Revert separators.

This commit is contained in:
SBiOSoftWhare
2020-07-10 16:43:20 +02:00
parent 4b04c2b929
commit b17bce3f7d
3 changed files with 15 additions and 13 deletions
@@ -103,8 +103,6 @@
// Reset textContainer.lineFragmentPadding to remove horizontal margin.
self.messageTextView.textContainerInset = UIEdgeInsetsZero;
self.messageTextView.textContainer.lineFragmentPadding = 0;
self.separatorView.hidden = YES;
xibMainHeightConstraint = self.mainHeightConstraint.constant;
}
@@ -114,7 +112,8 @@
-(void)customizeViewRendering
{
[super customizeViewRendering];
self.separatorView.backgroundColor = ThemeService.shared.theme.lineBreakColor;
if (self.messageLabel.textColor != ThemeService.shared.theme.warningColor)
{
self.messageLabel.textColor = ThemeService.shared.theme.textSecondaryColor;
@@ -273,6 +272,9 @@
self.backgroundColor = ThemeService.shared.theme.tintColor;
self.messageTextView.backgroundColor = ThemeService.shared.theme.tintColor;
// Hide the separator to display correctly the red pink conf call banner
self.separatorView.hidden = YES;
[self checkHeight:YES];
}
@@ -500,12 +502,17 @@
self.messageTextView.backgroundColor = ThemeService.shared.riotColorCuriousBlue;
}
// Hide the separator to display correctly the banner
self.separatorView.hidden = YES;
[self checkHeight:YES];
}
- (void)reset
{
self.backgroundColor = ThemeService.shared.theme.baseColor;
self.separatorView.hidden = NO;
self.backgroundColor = UIColor.clearColor;
[self resetIcon];
[self resetMessage];