Prepare Dark Theme

Remove the [UIApplication statusBarHidden] use (deprecated since iOS 9).
Use the default UIViewController-based status bar system.

Hide the user interface theme option in Settings.

https://github.com/vector-im/riot-meta/issues/22
This commit is contained in:
Giom Foret
2017-07-21 17:22:34 +02:00
parent d7cb89b747
commit 1a6a58954b
14 changed files with 268 additions and 59 deletions
@@ -114,6 +114,19 @@
self.defaultBarTintColor = kRiotSecondaryBgColor;
}
- (BOOL)prefersStatusBarHidden
{
// Return the preferred value of the delegate if it is a view controller itself.
// This is required to handle correctly the full screen mode when a media is selected.
if ([self.delegate isKindOfClass:UIViewController.class])
{
return [(UIViewController*)self.delegate prefersStatusBarHidden];
}
// Keep visible the status bar by default.
return NO;
}
- (void)destroy
{
[super destroy];