mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
#1512 (iPad status bar color)
This commit is contained in:
parent
7fdd6aa85c
commit
de36dad5d8
3 changed files with 16 additions and 1 deletions
|
@ -14,4 +14,14 @@ class SplitViewController: UISplitViewController {
|
|||
@objc func updateTheme() {
|
||||
|
||||
}
|
||||
|
||||
override var preferredStatusBarStyle: UIStatusBarStyle {
|
||||
print("preferredStatusBarStyle: \(ThemeManager.shared.isDarkTheme ? "light" : "dark")")
|
||||
|
||||
return ThemeManager.shared.isDarkTheme ? .lightContent : .darkContent
|
||||
}
|
||||
|
||||
override var childForStatusBarStyle: UIViewController? {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,6 +32,10 @@ NSString * const ThemeStyleDark = @"dark";
|
|||
}
|
||||
}
|
||||
|
||||
- (UIViewController *)childViewControllerForStatusBarStyle {
|
||||
return nil;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@interface ThemeManager ()
|
||||
|
@ -294,6 +298,7 @@ NSString * const ThemeStyleDark = @"dark";
|
|||
self.appDelegate.feedsNavigationController.navigationBar.barStyle = style;
|
||||
|
||||
[self.appDelegate.feedsNavigationController setNeedsStatusBarAppearanceUpdate];
|
||||
[self.appDelegate.splitViewController setNeedsStatusBarAppearanceUpdate];
|
||||
}
|
||||
|
||||
- (void)updateTheme {
|
||||
|
|
|
@ -197,7 +197,7 @@
|
|||
<key>UIStatusBarHidden</key>
|
||||
<false/>
|
||||
<key>UIStatusBarStyle</key>
|
||||
<string>UIStatusBarStyleBlackOpaque</string>
|
||||
<string>UIStatusBarStyleDefault</string>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
|
|
Loading…
Add table
Reference in a new issue