Fix theming in ShareViewController and FallbackViewController.

This commit is contained in:
Doug 2021-06-29 13:03:57 +01:00
parent 3f1fe87627
commit 9b28e4cc97
2 changed files with 8 additions and 0 deletions

View file

@ -36,6 +36,7 @@
{
[super viewDidLoad];
self.view.backgroundColor = ThemeService.shared.theme.backgroundColor;
self.titleLabel.textColor = ThemeService.shared.theme.textSecondaryColor;
self.titleLabel.text = NSLocalizedStringFromTable(@"share_extension_auth_prompt", @"Vector", nil);
self.logoImageView.tintColor = ThemeService.shared.theme.tintColor;

View file

@ -21,6 +21,9 @@
#import "ShareDataSource.h"
#import "ShareExtensionManager.h"
#import "ThemeService.h"
#import "RiotShareExtension-Swift.h"
@interface ShareViewController ()
@ -44,6 +47,10 @@
{
[super viewDidLoad];
self.view.tintColor = ThemeService.shared.theme.tintColor;
self.tittleLabel.textColor = ThemeService.shared.theme.textPrimaryColor;
self.masterContainerView.backgroundColor = ThemeService.shared.theme.baseColor;
self.shareExtensionManagerDidUpdateAccountDataObserver = [[NSNotificationCenter defaultCenter] addObserverForName:kShareExtensionManagerDidUpdateAccountDataNotification object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *notif) {
[self configureViews];