mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Fix theming in ShareViewController and FallbackViewController.
This commit is contained in:
parent
3f1fe87627
commit
9b28e4cc97
2 changed files with 8 additions and 0 deletions
|
@ -36,6 +36,7 @@
|
||||||
{
|
{
|
||||||
[super viewDidLoad];
|
[super viewDidLoad];
|
||||||
|
|
||||||
|
self.view.backgroundColor = ThemeService.shared.theme.backgroundColor;
|
||||||
self.titleLabel.textColor = ThemeService.shared.theme.textSecondaryColor;
|
self.titleLabel.textColor = ThemeService.shared.theme.textSecondaryColor;
|
||||||
self.titleLabel.text = NSLocalizedStringFromTable(@"share_extension_auth_prompt", @"Vector", nil);
|
self.titleLabel.text = NSLocalizedStringFromTable(@"share_extension_auth_prompt", @"Vector", nil);
|
||||||
self.logoImageView.tintColor = ThemeService.shared.theme.tintColor;
|
self.logoImageView.tintColor = ThemeService.shared.theme.tintColor;
|
||||||
|
|
|
@ -21,6 +21,9 @@
|
||||||
#import "ShareDataSource.h"
|
#import "ShareDataSource.h"
|
||||||
#import "ShareExtensionManager.h"
|
#import "ShareExtensionManager.h"
|
||||||
|
|
||||||
|
#import "ThemeService.h"
|
||||||
|
#import "RiotShareExtension-Swift.h"
|
||||||
|
|
||||||
|
|
||||||
@interface ShareViewController ()
|
@interface ShareViewController ()
|
||||||
|
|
||||||
|
@ -44,6 +47,10 @@
|
||||||
{
|
{
|
||||||
[super viewDidLoad];
|
[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.shareExtensionManagerDidUpdateAccountDataObserver = [[NSNotificationCenter defaultCenter] addObserverForName:kShareExtensionManagerDidUpdateAccountDataNotification object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *notif) {
|
||||||
|
|
||||||
[self configureViews];
|
[self configureViews];
|
||||||
|
|
Loading…
Reference in a new issue