The theme defined in the application is not applied to all UI components (#6532)

* The theme defined in the application is not applied to all UI components
This commit is contained in:
Gil Eluard
2022-08-05 15:00:22 +02:00
committed by GitHub
parent 7d54ab5819
commit 13a5d69b82
10 changed files with 85 additions and 48 deletions
@@ -3920,6 +3920,10 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
// The user wants to select this theme
RiotSettings.shared.userInterfaceTheme = newTheme;
ThemeService.shared.themeId = newTheme;
// This is a hack to force the background colour of the container view of the navigation controller
// This is needed only for hot theme update as the UIViewControllerWrapperView of the RioNavigationController is not updated
self.view.superview.backgroundColor = ThemeService.shared.theme.backgroundColor;
[self updateSections];
}