Prepare Dark Theme - Customize Riot view by using customizeViewRendering method.

https://github.com/vector-im/riot-meta/issues/22
This commit is contained in:
Giom Foret
2017-08-08 10:57:42 +02:00
parent 4ce2c436b8
commit 7cc4afba2b
11 changed files with 117 additions and 57 deletions
@@ -96,9 +96,6 @@
{
[super awakeFromNib];
self.separatorView.backgroundColor = kRiotColorLightGrey;
self.messageLabel.textColor = kRiotTextColorGray;
// Adjust text view
// Remove the container inset: this operation impacts only the vertical margin.
// Reset textContainer.lineFragmentPadding to remove horizontal margin.
@@ -108,6 +105,18 @@
xibMainHeightConstraint = self.mainHeightConstraint.constant;
}
#pragma mark - Override MXKView
-(void)customizeViewRendering
{
[super customizeViewRendering];
self.separatorView.backgroundColor = kRiotColorLightGrey;
self.messageLabel.textColor = kRiotTextColorGray;
}
#pragma mark -
- (void)displayUnsentMessagesNotification:(NSString*)notification withResendLink:(void (^)(void))onResendLinkPressed andCancelLink:(void (^)(void))onCancelLinkPressed andIconTapGesture:(void (^)(void))onIconTapGesture
{
[self reset];