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
+9 -3
View File
@@ -73,8 +73,9 @@ enum
enum
{
USER_INTERFACE_LANGUAGE_INDEX = 0,
USER_INTERFACE_THEME_INDEX,
USER_INTERFACE_COUNT
// USER_INTERFACE_THEME_INDEX,
USER_INTERFACE_COUNT,
USER_INTERFACE_THEME_INDEX
};
enum
@@ -301,7 +302,12 @@ typedef void (^blockSettingsViewController_onReadyToDestroy)();
[self refreshSettings];
}
[[UIApplication sharedApplication] setStatusBarStyle:kRiotDesignStatusBarStyle animated:NO];
[self setNeedsStatusBarAppearanceUpdate];
}
- (UIStatusBarStyle)preferredStatusBarStyle
{
return kRiotDesignStatusBarStyle;
}
- (void)didReceiveMemoryWarning