Dark theme - Improvements

- the keyboard bubble should be darker too
This commit is contained in:
Giom Foret
2017-09-11 22:37:00 +02:00
parent 44d1fd34a0
commit 4b47ad7294
7 changed files with 45 additions and 6 deletions
+13 -1
View File
@@ -63,7 +63,7 @@
[super viewDidLoad];
// Add the Vector background image when search bar is empty
// Add the Riot background image when search bar is empty
[self addBackgroundImageViewToView:self.view];
// Initialize here the data sources if a matrix session has been already set.
@@ -72,6 +72,18 @@
self.searchBar.autocapitalizationType = UITextAutocapitalizationTypeNone;
}
- (void)userInterfaceThemeDidChange
{
[super userInterfaceThemeDidChange];
UIImageView *backgroundImageView = self.backgroundImageView;
if (backgroundImageView)
{
UIImage *image = [MXKTools paintImage:backgroundImageView.image withColor:kRiotKeyboardColor];
backgroundImageView.image = image;
}
}
- (void)destroy
{
[super destroy];