瀏覽代碼

menu: drop branding gradient when running in the future

Felix Paul Kühne 12 年之前
父節點
當前提交
6e0feda50a
共有 1 個文件被更改,包括 10 次插入8 次删除
  1. 10 8
      AspenProject/VLCMenuTableViewController.m

+ 10 - 8
AspenProject/VLCMenuTableViewController.m

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