mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-05 23:47:44 +02:00
Prepare Dark Theme - Customize Riot view by using customizeViewRendering method.
https://github.com/vector-im/riot-meta/issues/22
This commit is contained in:
@@ -52,19 +52,9 @@
|
||||
[super awakeFromNib];
|
||||
|
||||
self.emailTextField.placeholder = NSLocalizedStringFromTable(@"auth_email_placeholder", @"Vector", nil);
|
||||
self.emailTextField.textColor = kRiotTextColorBlack;
|
||||
|
||||
self.passWordTextField.placeholder = NSLocalizedStringFromTable(@"auth_new_password_placeholder", @"Vector", nil);
|
||||
self.passWordTextField.textColor = kRiotTextColorBlack;
|
||||
|
||||
self.repeatPasswordTextField.placeholder = NSLocalizedStringFromTable(@"auth_repeat_new_password_placeholder", @"Vector", nil);
|
||||
self.repeatPasswordTextField.textColor = kRiotTextColorBlack;
|
||||
|
||||
self.messageLabel.numberOfLines = 0;
|
||||
|
||||
[self.nextStepButton.layer setCornerRadius:5];
|
||||
self.nextStepButton.clipsToBounds = YES;
|
||||
self.nextStepButton.backgroundColor = kRiotColorGreen;
|
||||
[self.nextStepButton setTitle:[NSBundle mxk_localizedStringForKey:@"auth_reset_password_next_step_button"] forState:UIControlStateNormal];
|
||||
[self.nextStepButton setTitle:[NSBundle mxk_localizedStringForKey:@"auth_reset_password_next_step_button"] forState:UIControlStateHighlighted];
|
||||
self.nextStepButton.enabled = YES;
|
||||
@@ -102,6 +92,23 @@
|
||||
self.viewHeightConstraint.constant = lastItemFrame.origin.y + lastItemFrame.size.height;
|
||||
}
|
||||
|
||||
#pragma mark - Override MXKView
|
||||
|
||||
-(void)customizeViewRendering
|
||||
{
|
||||
[super customizeViewRendering];
|
||||
|
||||
self.emailTextField.textColor = kRiotTextColorBlack;
|
||||
self.passWordTextField.textColor = kRiotTextColorBlack;
|
||||
self.repeatPasswordTextField.textColor = kRiotTextColorBlack;
|
||||
|
||||
self.messageLabel.numberOfLines = 0;
|
||||
|
||||
[self.nextStepButton.layer setCornerRadius:5];
|
||||
self.nextStepButton.clipsToBounds = YES;
|
||||
self.nextStepButton.backgroundColor = kRiotColorGreen;
|
||||
}
|
||||
|
||||
#pragma mark -
|
||||
|
||||
- (BOOL)setAuthSession:(MXAuthenticationSession *)authSession withAuthType:(MXKAuthenticationType)authType;
|
||||
|
||||
Reference in New Issue
Block a user