From 737c5cff63736f24b8d356076509733242d96bb0 Mon Sep 17 00:00:00 2001 From: ismailgulek Date: Wed, 15 Apr 2020 18:45:46 +0300 Subject: [PATCH] DeactivateAccountViewController theme, fixes #2993 Signed-off-by: ismailgulek --- .../DeactivateAccountViewController.m | 11 ++++++++--- .../DeactivateAccountViewController.storyboard | 8 ++++---- Riot/Modules/Settings/SettingsViewController.m | 2 +- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/Riot/Modules/Settings/DeactivateAccount/DeactivateAccountViewController.m b/Riot/Modules/Settings/DeactivateAccount/DeactivateAccountViewController.m index 975146130..b5917fc84 100644 --- a/Riot/Modules/Settings/DeactivateAccount/DeactivateAccountViewController.m +++ b/Riot/Modules/Settings/DeactivateAccount/DeactivateAccountViewController.m @@ -86,15 +86,14 @@ static CGFloat const kTextFontSize = 15.0; self.title = NSLocalizedStringFromTable(@"deactivate_account_title", @"Vector", nil); self.errorPresentation = [[MXKErrorAlertPresentation alloc] init]; - [self setupStringAttributes]; - [self setupViews]; - [self userInterfaceThemeDidChange]; [self registerThemeNotification]; } - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; + + [self userInterfaceThemeDidChange]; // Screen tracking [[Analytics sharedInstance] trackScreen:@"DeactivateAccount"]; @@ -126,6 +125,12 @@ static CGFloat const kTextFontSize = 15.0; [ThemeService.shared.theme applyStyleOnNavigationBar:self.navigationController.navigationBar]; self.activityIndicator.backgroundColor = ThemeService.shared.theme.overlayBackgroundColor; + + self.view.backgroundColor = ThemeService.shared.theme.backgroundColor; + + [self setupStringAttributes]; + + [self setupViews]; } - (void)setupStringAttributes diff --git a/Riot/Modules/Settings/DeactivateAccount/DeactivateAccountViewController.storyboard b/Riot/Modules/Settings/DeactivateAccount/DeactivateAccountViewController.storyboard index 687d1ef05..13f41d437 100644 --- a/Riot/Modules/Settings/DeactivateAccount/DeactivateAccountViewController.storyboard +++ b/Riot/Modules/Settings/DeactivateAccount/DeactivateAccountViewController.storyboard @@ -1,12 +1,11 @@ - + - - + @@ -57,7 +56,7 @@ Message visibility in Matrix is similar to email. Our forgetting your messages m