Commit 6e0feda5 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

menu: drop branding gradient when running in the future

parent 009cb202
...@@ -80,15 +80,17 @@ ...@@ -80,15 +80,17 @@
self.view = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, kGHRevealSidebarWidth, CGRectGetHeight(self.view.bounds))]; self.view = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, kGHRevealSidebarWidth, CGRectGetHeight(self.view.bounds))];
[self.view addSubview:_tableView]; [self.view addSubview:_tableView];
UIImageView *brandingBackgroundImageView; if (SYSTEM_RUNS_IN_THE_FUTURE) {
if (SYSTEM_RUNS_IN_THE_FUTURE) UIView *brandingBackgroundView = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, kGHRevealSidebarWidth, 64.0f)];
brandingBackgroundImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, kGHRevealSidebarWidth, 44.0f + 20.0f)]; brandingBackgroundView.backgroundColor = [UIColor colorWithRed:0.1608 green:0.1608 blue:0.1608 alpha:1.0000];
else [self.view addSubview:brandingBackgroundView];
} else {
UIImageView *brandingBackgroundImageView;
brandingBackgroundImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, kGHRevealSidebarWidth, 44.0f)]; brandingBackgroundImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, kGHRevealSidebarWidth, 44.0f)];
brandingBackgroundImageView.contentMode = UIViewContentModeScaleToFill;
brandingBackgroundImageView.contentMode = UIViewContentModeScaleToFill; brandingBackgroundImageView.image = [UIImage imageNamed:@"headerSidebar"];
brandingBackgroundImageView.image = [UIImage imageNamed:@"headerSidebar"]; [self.view addSubview:brandingBackgroundImageView];
[self.view addSubview:brandingBackgroundImageView]; }
UIImageView *brandingImageView; UIImageView *brandingImageView;
if (SYSTEM_RUNS_IN_THE_FUTURE) if (SYSTEM_RUNS_IN_THE_FUTURE)
brandingImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, kGHRevealSidebarWidth, 44.0f + 40.0f)]; brandingImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, kGHRevealSidebarWidth, 44.0f + 40.0f)];
......
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