Commit 1364c193 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

Fix navbar theme for the future

parent 227809e7
......@@ -14,8 +14,14 @@
- (void)loadTheme
{
UINavigationBar *navBar = self.navigationBar;
[navBar setBackgroundImage:[UIImage imageNamed:@"navBarBackground"]
forBarMetrics:UIBarMetricsDefault];
navBar.barStyle = UIBarStyleBlack;
if (!SYSTEM_RUNS_IN_THE_FUTURE) {
[navBar setBackgroundImage:[UIImage imageNamed:@"navBarBackground"]
forBarMetrics:UIBarMetricsDefault];
navBar.barStyle = UIBarStyleBlack;
} else {
navBar.barTintColor = [UIColor colorWithRed:1.0f green:(132.0f/255.0f) blue:0.0f alpha:1.f];
navBar.tintColor = [UIColor whiteColor];
navBar.titleTextAttributes = @{ UITextAttributeTextColor : [UIColor whiteColor] };
}
}
@end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment